ios 开发小技巧

来源:互联网 发布:程序员常用的工具 编辑:程序博客网 时间:2024/05/22 17:03

1.

假如 定义 了一个 _tableView

UITableView *_tableView; /**< 这个是数据源列表  */


那么 在使用 _tableView 的时候  当你输入  _tab  那么 提示框的最下面 就会出现 ”  这个是数据源列表  “ 

 

方便后面维护或者写代码的人知道 这个是干嘛的


同样 注解到  方法 也是可以行的




--------------------------------------------------------

3.

显示/隐藏 文件夹

显示:defaults write com.apple.finder AppleShowAllFiles -bool true
隐藏:defaults write com.apple.finder AppleShowAllFiles -bool false



2015-8-5 

4. 安装了新的Xcode 之后 启动不了

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim is not owned by root.

提示是说没有权限

sudo chown root /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim

0 0
原创粉丝点击