「IOS入門」ActionSheetPickerをカスタマイズするサンプルコード

サンプルコード:
– (void)showActionSheetPicker {
UIView *masterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.viewSize.width, 260)];
UIToolbar *pickerToolbar = [self createPickerToolbarWithTitle:self.title];
[pickerToolbar setBarStyle:UIBarStyleBlackTranslucent];
[masterView addSubview:pickerToolbar];
self.pickerView = [self configuredPickerView];
NSAssert(_pickerView != NULL, @"Picker view failed to instantiate, perhaps you have invalid component data.");
[masterView addSubview:_pickerView];
masterView.backgroundColor=[UIColor whiteColor];
[self presentPickerForView:masterView];
}

IOS

Posted by arkgame