#define kIsIOS7 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)
if (kIsIOS7) //也就是iOS7以后的系统
{
self.edgesForExtendedLayout = UIRectEdgeNone;
self.extendedLayoutIncludesOpaqueBars = YES;
self.automaticallyAdjustsScrollViewInsets = NO;
}