摘要: IOS 适配不同的界面xib

方法如下:

在跳转本界面时,在代码里面实现如下:

1
2
3
4
5
6
7
8
9
10
11
float systemVersion = [[[UIDevice currentDevice] systemVersion] floatValue];
if (systemVersion >= 7.0)
{
AboutUSView *aboutUSView= [[[AboutUSView alloc] initWithNibName:@"AboutUSView1" bundle:nil] autorelease];
[self.navigationController pushViewController:aboutUSView animated:TRUE];
}
else
{
AboutUSView *aboutUSView= [[[AboutUSView alloc] initWithNibName:@"AboutUSView" bundle:nil] autorelease];
[self.navigationController pushViewController:aboutUSView animated:TRUE];
}