一些简单记录
来源:互联网 发布:java.util.base64加密 编辑:程序博客网 时间:2024/05/18 09:49
1:Xcode设置横竖屏
在RootViewController.mm文件里找到 - (NSUInteger) supportedInterfaceOrientations方法。如果想让程序是竖屏,直接return
UIInterfaceOrientationMaskPortrait。横屏是默认的,当然也可以选择别的,自己跟到源码里找,应该不难。
大概是以下几个
UIInterfaceOrientationMaskPortrait= (1 <<UIInterfaceOrientationPortrait),
UIInterfaceOrientationMaskLandscapeLeft = (1
<<UIInterfaceOrientationLandscapeLeft),
UIInterfaceOrientationMaskLandscapeRight = (1
<<UIInterfaceOrientationLandscapeRight),
UIInterfaceOrientationMaskPortraitUpsideDown = (1
<<UIInterfaceOrientationPortraitUpsideDown),
UIInterfaceOrientationMaskLandscape =
(UIInterfaceOrientationMaskLandscapeLeft
| UIInterfaceOrientationMaskLandscapeRight),
UIInterfaceOrientationMaskAll = (UIInterfaceOrientationMaskPortrait |
UIInterfaceOrientationMaskLandscapeLeft |
UIInterfaceOrientationMaskLandscapeRight
| UIInterfaceOrientationMaskPortraitUpsideDown),
UIInterfaceOrientationMaskAllButUpsideDown =
(UIInterfaceOrientationMaskPortrait |
UIInterfaceOrientationMaskLandscapeLeft |
UIInterfaceOrientationMaskLandscapeRight)
2:xcode中一些快捷键
command+r 相当于′F5, 运行
command+. 停止调试
control+command+Y相当于vs中得F5
fn+F6 相当于vs中得F10,单步调试
fn+F7 相当于vs中得F11,进入代码内部调试
command +/ 给选中代码块改为注释(再来一次改回来)
control + command + 箭头(<- ->)cpp与头文件之间的切换
- 一些简单记录
- 一些简单方法记录
- Android一些简单记录
- mongoTemplate 一些简单记录
- TCP的一些简单记录
- udp的一些简单记录
- SurfaceView的一些简单记录
- 记录AndroidStudio一些简单操作
- 记录一些简单实用的vim用法
- 一些简单的批处理脚本记录
- 一些简单的批处理脚本记录
- 记录关于c4droid的一些简单资料
- 记录一些简单的matlab用法
- Linux 一些基本指令简单使用记录
- 记录一些简单动画效果代码
- git初次接触记录简单一些用法
- 记录Vue的一些简单的使用
- ubuntu下安装一些简单软件的过程记录
- 缺失的数字分析
- SERVER2008IIS服务器不能正常使用(由于扩展配置问题而无法提供您请求的页面,如果该页面是脚本...)
- SELECT INTO 和 INSERT INTO SELECT 两种表复制语句
- httpClient----Post 和 GET请求
- 贫穷太容易让人失去尊严
- 一些简单记录
- 为android 项目生产javadoc
- c#發送Email方法整理
- TOP命令
- db2还原命令
- maven配置文件优先级
- Ajax从服务器端获取数据
- android音量控制曲线和调用过程
- __copy_to_user_ll的问题