// 设置YES则由系统自动控制隐藏 NO 则一直显示 - (BOOL)prefersHomeIndicatorAutoHidden{ return YES; }
UINavigationController导航控制器也需要重写以下这个方法
UINavigationController
- (UIViewController *)childViewControllerForHomeIndicatorAutoHidden{ return self.topViewController; }