摘要:
1.所有的UIViewController加如下方法。 - (void) viewDidLayoutSubviews { if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0){ CGRect viewBounds = self.view.bounds; CGFloat topBarOffset = self.topLayoutGuide.length; viewBounds.origin.y = topBarOffset * -1; self.view.bounds =... 阅读全文