【发布时间】:2017-03-23 13:36:11
【问题描述】:
我创建了一个继承自 UIButton 的类 RadioButton ,并重写了方法 layoutSubViews ,其中重置了 self.imageView 和 self.titleLabel 的框架,当我调用 RadioButton 实例的方法 setImage:forState: 时,它不起作用,但是方法 radioButton.imageView.image = [UIImage imageNamed:@""] 工作。这是一个有趣的问题,如果有人知道原因并分享原因,我将不胜感激。
【问题讨论】:
-
你能显示代码吗
-
你必须展示你的一些代码。我认为...
标签: ios objective-c uibutton