我有一个 IBOutlet UIButton 添加到 IB 的滚动视图中。我将其类型设置为自定义,然后在 viewDidLoad 我有:
[self.featuredButton setImage:[UIImage imageNamed:@"featuredNormal.png"] forState:UIControlStateNormal];
[self.featuredButton setImage:[UIImage imageNamed:@"featuredSelected.png"] forState:UIControlStateSelected];
图像没有出现...为什么不呢?