在modalPresentationStyle = UIModalPresentationCustom 或 UIModalPresentationOverCurrentContext等non_full screen效果時(shí)會(huì)出現(xiàn)這情況,蘋果提供如下API:
//This controls whether this view controller takes over control of the status bar's appearance when presented non-full screen on another view controller. Defaults to NO.
@property(nonatomic,assign) BOOL modalPresentationCapturesStatusBarAppearance NS_AVAILABLE_IOS(7_0) __TVOS_PROHIBITED;
設(shè)置為YES即可颜价。