隐藏状态栏

// 隐藏状态栏
- (BOOL)prefersStatusBarHidden {
    return YES;
}

注:隐藏状态栏 一个方法就够了

原文地址:https://www.cnblogs.com/dujiahong/p/8308674.html