#pragram mark
代碼邏輯分塊
檢視文檔說明
選中要檢視的api,按住option+左鍵:
注釋
cmd + /
Masonry
autolayout <a href="http://adad184.com/2014/09/28/use-masonry-to-quick-solve-autolayout/">http://adad184.com/2014/09/28/use-masonry-to-quick-solve-autolayout/</a> ### 使用注意 + 案例 make.left.equalTo(self.contentView).offset(12); make.top.equalTo(self.contentView).offset(18); make.size.width.mas_equalTo(32); make.size.height.mas_equalTo(32); 每個屬性設定都單獨寫;因為是鍊式文法,如果所有屬性的配置都放在一起感覺後面的設定會覆寫前面的設定。 + 居中 > make.center + 垂直居中 > make.centerY + 水準居中 > make.centerX
MJRefresh
下拉重新整理 <a href="https://github.com/CoderMJLee/MJRefresh">https://github.com/CoderMJLee/MJRefresh</a>
FMDB
TODO 了解
cocoapods
程式依賴管理 <a href="http://blog.devtang.com/2014/05/25/use-cocoapod-to-manage-ios-lib-dependency/">http://blog.devtang.com/2014/05/25/use-cocoapod-to-manage-ios-lib-dependency/</a>
UIImageView
<a href="http://blog.sina.com.cn/s/blog_9c2363ad0101e15l.html">http://blog.sina.com.cn/s/blog_9c2363ad0101e15l.html</a>
UITableView
<a href="https://www.kancloud.cn/digest/ios-1/107419">https://www.kancloud.cn/digest/ios-1/107419</a> 設定UITableViewDelegate,試圖加載委托 設定UITableViewDataSource,資料綁定 可以自定義Cell,需要繼承UITableViewCell
UITextView
類似于Android裡面的EditText
UILabel
文本 富文本
UIFont
設定文本字型
UITableViewDelegate
UITableViewDataSource
編譯失敗,符号沖突
由于import了.m檔案,導緻;import .h檔案後編譯成功;
unrecognized selector sent to instance
給nil對象發送了消息
自定義的UITableViewCell沒有被UI TableView調用
需要調用UITableView的registerClass方法注冊自定義的cell
NSInternalInconsistencyException
reason: 'couldn't find a common superview for <UITextView: 0x7fdb4d015200; 原因:是在設定view的限制前沒有調用addSubView方法将view添加到parent view中。 解決辦法:是在view初始化完成後調用parentview的addsubview方法;
Objective-C的屬性修飾符
<a href="http://lysongzi.com/2016/02/28/iOS-Objective-C%E7%9A%84%E5%B1%9E%E6%80%A7%E4%BF%AE%E9%A5%B0%E7%AC%A6/">http://lysongzi.com/2016/02/28/iOS-Objective-C的屬性修飾符/</a>
@class
本文轉自wauoen51CTO部落格,原文連結:http://blog.51cto.com/7183397/2064531 ,如需轉載請自行聯系原作者