码迷,mamicode.com
首页 > 其他好文 > 详细

按钮的样式

时间:2016-11-12 22:36:40      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:需要   span   family   log   tom   image   ros   技术   alt   

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

技术分享

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


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

 

按钮的样式

标签:需要   span   family   log   tom   image   ros   技术   alt   

原文地址:http://www.cnblogs.com/xufengyuan/p/6057451.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!