风言枫语  

  昨天,做了项目中的一点,觉得细节还是很重要的。像一个普通的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
};

 

 

posted on 2013-09-10 20:51  风言枫语  阅读(148)  评论(0编辑  收藏  举报