iOS7中隐藏状态栏的方法
2014-08-01 09:28
393 查看
1.UIViewController中的方法 - (UIStatusBarStyle)preferredStatusBarStyle NS_AVAILABLE_IOS(7_0); // Defaults to UIStatusBarStyleDefault - (BOOL)prefersStatusBarHidden NS_AVAILABLE_IOS(7_0); // Defaults to NO // Override to return the type of animation that should be used for status bar changes for this view controller. This currently only affects changes to prefersStatusBarHidden. - (UIStatusBarAnimation)preferredStatusBarUpdateAnimation NS_AVAILABLE_IOS(7_0); // Defaults to UIStatusBarAnimationFade 2.UIApplication的方法 /** * 隐藏状态栏效果 * 1.系统提供了2种动画,一种是偏移,一种是渐隐 * 2.在plist文件中将”View controller-based status bar appearance” 设置为 “No” */ [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
相关文章推荐
- iOS7(Xcode5)中隐藏状态栏的方法
- iOS7(Xcode5)中隐藏状态栏的方法
- iOS7(Xcode5)中隐藏状态栏的方法
- IOS7中隐藏状态栏的方法
- 一种iOS7 设置隐藏状态栏的方法
- iOS7(Xcode5)中隐藏状态栏的方法
- ios7以上系统隐藏状态栏方法
- ios7中隐藏顶部状态栏的方法
- iOS7隐藏状态栏的方法
- IOS7 隐藏状态栏 (电池栏)
- 隐藏状态栏的方法
- 【Cocos2dx隐藏iOS7状态栏】通过添加Plist Key隐藏iOS7状态栏
- iOS7-隐藏状态栏
- scrollView滚动事隐藏状态栏方法
- IOS7状态栏StatusBar官方标准适配方法
- IOS7 隐藏状态栏 (电池栏)
- IOS学习笔记56-IOS7状态栏适配方法一
- IOS7隐藏状态栏
- iOS7-UI 一直隐藏状态栏
- IOS7状态栏StatusBar官方标准适配方法