狗尾草

导航

2013年9月22日 #

(ios实战)单个ViewControl适配不同ios版本xib文件实现

摘要: xcode5 中的界面布局 根据sdk 分成ios7.0 and Later 和 ios6.1 and Earlier 两种,那如何xib同时支持 ios6 和ios7 的界面呢方法如下:在xcode5 中分别创建两个 xib文件 和对应的ViewControl关联, 这两个xib文件一个支持ios6 一个支持ios7在跳转本界面时,在代码里面实现如下: float systemVersion = [[[UIDevice currentDevice] systemVersion] floatValue]; if (systemVersion >= 7.0) { ... 阅读全文

posted @ 2013-09-22 23:04 狗尾草-大数据收割基 阅读(8482) 评论(1) 推荐(1) 编辑

(ios7) 解决Ios7中,Navigatebar 显示在主View中,和ios6 不一致问题

摘要: 在ios 7 系统中 NavigateBar 显示在主View中 ,Ios6 不在主View中,导致后台代码的方式编写View不一致解决方法:在ViewControl的viewDidLoad 方法中- (void)viewDidLoad添加 float systemVersion = [[[UIDevice currentDevice] systemVersion] floatValue]; if (systemVersion >= 7.0) { //某个仅支持7.0以上版本的方法 self.edgesForExtendedLayout = UIRect... 阅读全文

posted @ 2013-09-22 16:36 狗尾草-大数据收割基 阅读(1700) 评论(2) 推荐(1) 编辑