iOS7tableview偏移nagivation 遮挡视图 处理

1、 首先创建两个个基类UIBaseViewController和UIBaseTableViewController分别继承于UIViewController和UITableViewController,然后其余的所有对应类均继均承于此两个类

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

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