读书人

iOS UIButton详细引见

发布时间: 2013-09-11 16:26:28 作者: rapoo

iOS UIButton详细介绍

昨天,做了项目中的一点,觉得细节还是很重要的。像一个普通的UIButton,给它调试字体格式,大小什么的,确实是蛮耗时间的。

今天打算详细的归纳归纳。。

typedef NS_ENUM(NSInteger, UIButtonType) {    UIButtonTypeCustom = 0,    //可以自适应的类型,一般给它添加图片,跟据背景图片的大小来调节本身的大小,如果不设置frame的话,将不会显示       // no button type    UIButtonTypeRoundedRect,          // rounded rect, flat white button, like in address card 圆角矩形    UIButtonTypeDetailDisclosure,//显示细节》蓝色小箭头按钮,主要做详细说明用    UIButtonTypeInfoLight,//亮色感叹号    UIButtonTypeInfoDark,//暗色感叹号    UIButtonTypeContactAdd,// 十字加号按钮,貌似用这个模式,不能给按钮添加title};

读书人网 >操作系统

热点推荐