UILabel
1、UILabel(API详解)
http://www.jianshu.com/p/c926bed3e571
2、如何在autolayout让label适应不同的宽度
http://www.itnose.net/detail/6198632.html 此外还可以用代码控制 SizeToFix
3、UIFont字体大全
http://blog.csdn.net/ztp800201/article/details/7918495
UIView
1、另类添加背景图片
UIImage*image = [UIImageimageNamed:@"index_bg_pic"];
self.containerView.layer.contents= (id)image.CGImage;
UIButton
1、设置UIButton的文字显示位置、字体的大小、颜色 http://blog.csdn.net/skykingf/article/details/9768915
2、用法详解
http://blog.csdn.net/heng615975867/article/details/38873647
UITextField
1、UITextField的文字缩进
http://blog.csdn.net/daiyelang/article/details/42005783 UITextField 还可以这样设置文字缩进 如果没有leftView 可以给一个 10f宽的空白leftViewS
UIWebView
UITableView
1、点击的效果 cell.selectionStyle
UIScrollView
1、UIScrollView xib 自动布局问题 http://www.jianshu.com/p/3300a9ec28f4 其实关键的问题就是UIScrollView中的控件的宽度必须确定,不能是相对于 否则会出现问题
2、ScrollView使用AutoLayout https://segmentfault.com/q/1010000002710690?_ea=186785
UICollectionView
注意点:1、如果是xib建立的collectionCell需要重写init方法

所遇问题:
1、NSInternalInconsistencyException', reason: 'could not dequeue a view of kind: UICollectionElementKindCell with identifier CSProfileCardCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
解决:在viewDidLoad添加解决Cell 的注册
2、明明有在CollectionView的属性中添加自定义FlowLayout的关联,也写了init配置了Cell的属性为什么没有用?
解决 在自定义FlowLayout中 完成这个方法: - (NSArray*)layoutAttributesForElementsInRect:(CGRect)rect {}
返回每个Cell 的布局
xib的学习
1、iOS开发之xib技巧介绍
http://www.ifun.cc/blog/2014/02/22/ioskai-fa-zhi-xibji-qiao-jie-shao/
2、IOS开发UI搭建心得(二)--善用xib
https://lvwenhan.com/ios/453.html
约束动画
1、约束如何添加动画? http://www.3lian.com/edu/2015/05-05/210038.html
文本属性Attributes
给iOS开发新手送点福利,简述文本属性的用法
http://www.cnblogs.com/xmqios/p/3496615.html
网友评论