视图显示不正确

时间:2014-12-09 19:07:48

标签: ios objective-c view

[super viewDidLoad];
// Do any additional setup after loading the view.

if (INTERFACE_IS_IPHONE5) {
    CGPoint center = _canvas.center;
    CGRect frame = _canvas.frame;
    frame.size.width = frame.size.height = 568;
    _canvas.frame = frame;
    _canvas.center = center;
}

旋转屏幕时,图像不显示iPhone的全宽。我认为视图中的这行代码确实加载了它。尝试更新iPhone 6和6 Plus的应用程序。有什么想法吗?

1 个答案:

答案 0 :(得分:0)

您需要实现横向和纵向模式的方法。请参阅此Apple Documentation