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];
}
}
しかし、まだ変化はありません。これを解決するにはどうすればよいですか?