iOS7tableview偏移nagivation 遮挡视图 处理

一、 首先建立两个个基类UIBaseViewController和UIBaseTableViewController分别继承于UIViewController和UITableViewController,而后其他的全部对应类均继均承于此两个类ide

二、 在两个基类viewdidload函数之中添加以下代码:函数

               NSComparisonResult order = [[UIDevice currentDevice].systemVersion compare: @"7.0" options: NSNumericSearch];
   if (order == NSOrderedSame || order == NSOrderedDescending)
   {
       // OS version >= 7.0
       self.edgesForExtendedLayout = UIRectEdgeNone;
   }

继承

相关文章
相关标签/搜索