
我在iOS 6的应用程序中使用了带有故事板的iOS栏控制器。
在normal或iPhone-4中,屏幕布局都可以。但在iPhone-5或Retina display中,我坚持使用Tabbar控制器布局。
有什么特别的设置吗?请尽快告诉我解决方案。
提前谢谢。
发布于 2012-12-15 19:51:35
这段代码至少对我是有效的。
代码::
if ([[UIScreen mainScreen] bounds].size.height == 568)
{
[view setFrame:CGRectMake(view.frame.origin.x, 519, view.frame.size.width, view.frame.size.height)];
}
else if ([[UIScreen mainScreen] bounds].size.height == 480)
{
[view setFrame:CGRectMake(view.frame.origin.x, 431, view.frame.size.width, view.frame.size.height)];
}https://stackoverflow.com/questions/13890991
复制相似问题