// 取消iOS7的边缘延伸效果(例如导航栏,状态栏等等) self.modalPresentationCapturesStatusBarAppearance = NO; self.edgesForExtendedLayout = UIRectEdgeNone; self.extendedLayoutIncludesOpaqueBars = NO;