#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 ,如需转载请自行联系原作者