UIView
我的应用程序在 ios6 中看起来不错,但在 ios7 中,整个视图都被扭曲了。在 ios7 中,整个视图向上提升。
编辑:
然后我应用了这段代码:
float SystemVersion=[[[UIDevice currentDevice] systemVersion] floatValue];
if(SystemVersion<7.0f)
{
//Currently your app is running in IOS6 or older version. So you need not to do anything.
}
else
{
// Currently your app is running in IOS7. Do the following.
CGRect TempRect;
for(UIView *sub in [[self view] subviews])
{
TempRect=[sub frame];
TempRect.origin.y+=20.0f; //Height of status bar
[sub setFrame:TempRect];
}
}
但仍然没有变化。我该如何解决这个问题?