【问题标题】:Change uiorientation and set image fullscreen iphone更改 ui 方向并设置图像全屏 iphone
【发布时间】:2011-11-23 17:18:22
【问题描述】:

我创建了一个使用 uiimageview 的 iphone 应用程序。在查看加载方法时,我创建了一个带有 uiimageview、uibutton、uilabel 的滚动视图。在 imageview 中设置图像。 在 Image touch evant 中,我想旋转视图并在 uimage 视图全屏中设置 uiimage。我怎样才能做到这一点。 请帮帮我。

【问题讨论】:

    标签: iphone ios uiimageview scrollview


    【解决方案1】:

    看这个页面http://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/AnimatingViews/AnimatingViews.html#//apple_ref/doc/uid/TP40009503-CH6-SW1

    你必须同时改变框架和变换。

    imageView.frame = CGRectMake(0,0,480,320);
    imageView.transformation = CGAffineTransformMakeRotation(M_PI/2);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-02-28
      • 1970-01-01
      • 1970-01-01
      • 2012-12-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多