iOS 使用Method Swizzling隱藏Status Bar

在iOS 6中,隱藏Status Bar很是的簡單。html // iOS 6及之前,隱藏狀態欄 [[UIApplication sharedApplication] setStatusBarHidden:YES]; 來到了iOS 7的年代之後,須要在UIViewController中指定:app #ifdef __IPHONE_7_0 - (BOOL)prefersStatusBarHidden
相關文章
相關標籤/搜索