【发布时间】:2012-05-17 22:33:59
【问题描述】:
如何以编程方式更改 UISegmentedControl 标题?你能帮帮我吗?
@synthesize filterControl; //UISegmentedControl
- (void)viewDidLoad
{
[super viewDidLoad];
filterControl = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects:@"ALL",@"PROFIT",@"LOSS", nil]]; //not working
}
【问题讨论】:
标签: objective-c xcode uisegmentedcontrol