[英]Problem Type UIButton
我有两个UIButton
按钮。 我已经初始化了xib类型的按钮,在我想更改按钮类型的程序后添加了联系:
configImage1=[UIButton buttonWithType:UIButtonTypeDetailDisclosure] ; //doesn't Work !
configImage2=[UIButton buttonWithType:UIButtonTypeDetailDisclosure]; //doesn't Work !
创建按钮后,您将无法更改其类型。
UIButton具有以下属性,但它是只读的,因此一旦创建按钮就无法更改按钮类型,
@property(nonatomic, readonly) UIButtonType buttonType
如果您想更改按钮类型,请尝试再次创建一个新的UIButton
,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.