按钮的样式

实际上,UIButton自带了很多种不同的样式

在用代码创建按钮的同时指定按钮样式
UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];


UIButtonTypeCustom:无类型,按钮的内容需要自定义
UIButtonTypeDetailDisclosure:
UIButtonTypeInfoLight:
UIButtonTypeInfoDark:
UIButtonTypeContactAdd:

 

posted @ 2016-11-12 20:09  iFat  阅读(199)  评论(0编辑  收藏  举报