此方法在 - (void)viewDidLoad 裏面運行是須要寫上消去;ios
可是運行在-(void)viewWillAppear:(BOOL)animated 就不須要消去。spa
if (systemNumber ==7) 3d
{it
myScrollView = [[UIScrollViewalloc]initWithFrame:CGRectMake(0,64, 320, 455)];io
myScrollView.contentSize =CGSizeMake(320,456);scroll
//削去ios 7下的scrollview的contentSize有上面導航和下面tabbar的偏移量(上,左,下,右)方法
myScrollView.contentInset =UIEdgeInsetsMake(-64,0, -49, 0);im
}margin