【发布时间】:2012-07-11 01:06:57
【问题描述】:
我有一个 iPhone 应用程序,我在其中使用带有背景的 IBOutlet 按钮。单击它时,我调用了一个 Web 服务,如果成功,我需要更改按钮的背景。现在我正在这样做,但什么也没发生:
UIImage *buttonImage = [UIImage imageNamed:@"follow_shop.png"];
[following setBackgroundImage:buttonImage forState:UIControlStateNormal];
有人知道如何实现吗?
【问题讨论】:
标签: iphone ios ipad background uibutton