
UI
文章平均质量分 61
DeadRabbit2015
QQ:1010473913 技术交流
展开
-
UIButton的titleEdgeInsets和imageEdgeInsets属性
不想再麻烦写继承,再重写方法,就花点时间在这上面,欢迎跟帖探讨 UIButton上的UILabel和UIimageView两个控件就不做具体介绍了! 设: TextW=text.width ImageW=image.width ButtonW=button.width Case1. ImageW > ButtonW,只显示被压缩后的图片 Case2. Imag原创 2015-09-29 11:29:55 · 587 阅读 · 0 评论 -
UITableView和UITableViewCell 图解
UITableView的两种样式:typedef NS_ENUM(NSInteger, UITableViewStyle) { UITableViewStylePlain, UITableViewStyleGrouped }; 如图: UITableViewCell 四种样式: typedef NS_ENUM原创 2015-11-03 16:53:14 · 877 阅读 · 0 评论 -
autoresizingMask
在 UIView 中有一个autoresizingMask的属性,它对应的是一个枚举的值(如下),属性的意思就是自动调整子控件与父控件中间的位置,宽高。typedef NS_OPTIONS(NSUInteger, UIViewAutoresizing) { UIViewAutoresizingNone = 0, UIViewAutoresizingF原创 2015-11-17 17:41:51 · 402 阅读 · 0 评论