【发布时间】:2013-06-07 13:20:36
【问题描述】:
我的应用程序中有一个 UIPickerView,我想在其上设置一个完成按钮来隐藏选择器。
我不想使用操作表,因为我想专注于视图的其余部分。我的意思是所有视图都必须处于活动状态。
这是我创建选择器的方法:
UIPickerView *pickerViewCountry = [[UIPickerView alloc] init];
pickerViewCountry.showsSelectionIndicator = YES;
pickerViewCountry.dataSource = self;
pickerViewCountry.delegate = self;
pickerViewCountry.frame = CGRectMake(0,210 , 320, 15);
[self.view addSubview:pickerViewCountry];
[pickerViewCountry release];
【问题讨论】:
标签: iphone objective-c ios