我想在段控制索引路径中设置图像框架,我已经用谷歌搜索了,但没有得到具体的答案。我正在做
[self.segmentedControl setImage:[UIImage imageNamed:@"popularitem-activee.png"] forSegmentAtIndex:0];
[self.segmentedControl setImage:[UIImage imageNamed:@"popularuserr.png"] forSegmentAtIndex:1];
我想这样做
[self.segmentedControl setImage:[UIImage imageNamed:image1 forSegmentAtIndex:0];