UIButton在iOS 6中显示带圆角的默认白色背景,但在IOS 7中不显示
答
如果选择UIButtonTypeCustom
类型的按钮,就没有默认背景
答
试试这个,
UIButton *infoButton = [UIButton buttonWithType:UIButtonTypeCustom];
答
在iOS系统7默认的UIButton,就像是网页的超链接,用透明背景,无寄宿生。现在iOS 7实际上是边框少了,如果你想有像iOS 6那样的角落和背景,可以使用自定义按钮。 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]
现在你可以设置背景和其他东西,如果你想。
+0
是的,就是这样 – user1582281
不为我工作。 ios 6.1.x itouch4 – zszen