ios开发点滴
来源:互联网 发布:js 判断字符串长度 编辑:程序博客网 时间:2024/05/17 09:08
// Override to allow orientations other than the default portrait orientation.
// This method is deprecated on ios6
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
returnUIInterfaceOrientationIsLandscape( interfaceOrientation );
}
虽然6.0已经不用了,但是如果对于老版本的6.0以下的还是需要的。
// For ios6, use supportedInterfaceOrientations & shouldAutorotate instead
- (NSUInteger) supportedInterfaceOrientations{
#ifdef __IPHONE_6_0
returnUIInterfaceOrientationMaskLandscape;
#endif
}
- (BOOL) shouldAutorotate {
return YES;
}
- ios开发点滴
- ios开发点滴
- ios开发点滴
- ios开发点滴
- ios开发点滴
- iOS开发点滴-CABasicAnimation
- IOS开发点滴
- iOS开发技巧点滴
- ios开发点滴-uitabbar
- iOS开发点滴-网络流量
- iOS开发点滴-ALAssetsLibrary
- ios开发点滴-AFNetworking 使用
- iOS开发技巧点滴积累
- iOS开发点滴 - 关闭键盘
- ios开发点滴-常量使用
- ios开发点滴-播放系统声音
- ios开发点滴-判断iphone5屏幕
- ios开发点滴-tableview image 缓存
- ftp
- 【iOS游戏开发】icon那点事 之 图标设计(三)
- ubuntu系统使用命令
- 使用CSS3和RGBa创建超酷的按钮
- Emacs软件的基础配置文件
- ios开发点滴
- CF 145E
- TWaver Android 概述
- 欺骗编译器取得ISurface对象的方法
- 如何在线看文档-07(docx)免费转03(doc)word
- 如何安装Emacs插件(Extension)
- __asm__ __volatile__内嵌汇编用法简述
- MYSQL实用笔记(持续更新)
- Makefile基本规则及应用