IOS快捷键及一些小知识

2020-10-08  本文已影响0人  我不白先生
将登陆密码由显示改为点点点.png
1、将Secure Text Entry勾选就能将密码改为不可见如
结果2.png
2、cmd+shift+h相当于按模型机的home键进入后台
3、cmd+k打开键盘
4、Xcode9之前版本代码折叠:
在Xcode菜单里选择Preference——Text Editing,你会发现里面有一个“code folding ribbon”,勾选它就能恢复代码折叠功能了。
然后通过菜单Editor——Code Folding,你就可以使用你需要的折叠功能。
局部折叠(折叠一个函数) :Command+Option+Left/Right
安卓键盘是cmd+alt+Left/Right
全局折叠(折叠当前文件下的全部函数):Shift+Command+Option+Left/Right
折叠注释块:(/* /之间的文字) : Ctrl+Shift+Command+Left/Right
5./
*
<#Description#>
*/
特殊注释:cmd+option+/
6.创建通用型号
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    self.window.rootViewController = [[<#Type#> alloc]init];
    [self.window makeKeyAndVisible];

右键点击creat code snippet
封装代码快
self.window.rootViewController = [[<#Type#>alloc]init];

image.png

shift+command+g前往文件路径窗口


image.png
上一篇 下一篇

猜你喜欢

热点阅读