Github user kfeagle commented on a diff in the pull request: https://github.com/apache/incubator-weex/pull/233#discussion_r110575097 --- Diff: ios/sdk/WeexSDK/Sources/Module/WXPickerModule.m --- @@ -160,17 +201,52 @@ -(void)configPickerView [self.backgroundView addGestureRecognizer:tapGesture]; self.pickerView = [self createPickerView]; UIToolbar *toolBar=[[UIToolbar alloc]initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, WXPickerToolBarHeight)]; - [toolBar setBackgroundColor:[UIColor whiteColor]]; + toolBar.barTintColor = self.titleBackgroundColor?self.titleBackgroundColor:[UIColor whiteColor]; + + + UIBarButtonItem* noSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil]; noSpace.width=10; - UIBarButtonItem* doneBtn = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(done:)]; - UIBarButtonItem *flexSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil]; - UIBarButtonItem* cancelBtn = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancel:)]; + + UIBarButtonItem* doneBtn ; + if (self.confirmTitle.length >0) { + doneBtn = [[UIBarButtonItem alloc] initWithTitle:self.confirmTitle style:UIBarButtonItemStyleBordered target:self action:@selector(done:)]; + }else { + doneBtn = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(done:)]; + } + if(self.confirmTitleColor){ + doneBtn.tintColor = self.confirmTitleColor; --- End diff -- confirmTitleColor is a text's color
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---