CooperRS / RMPickerViewController

This is an iOS control for selecting something using UIPickerView in an UIAlertController like manner
MIT License
381 stars 51 forks source link

Unable to change the titleColor of actionButton And selected Row title color of picker #57

Closed dazzyjong closed 7 years ago

dazzyjong commented 7 years ago

Even I change [RMAction loadView] to show ios 10 default style button( blue color ), but the button color is gray only. Please give advice. Also please let me know how to change picker view's selected row title color.

` UIButton *actionButton = [UIButton buttonWithType:UIButtonTypeSystem];

[actionButton setTitleColor:[UIColor colorWithRed:0/255 green:122/255 blue:255/255 alpha:1] forState:UIControlStateNormal]; [actionButton addTarget:self action:@selector(actionTapped:) forControlEvents:UIControlEventTouchUpInside];

if(self.title) { [actionButton setTitle:self.title forState:UIControlStateNormal]; }

[actionButton addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:[actionButton(height)]" options:0 metrics:@{@"height": @([NSProcessInfo runningAtLeastiOS9] ? 55 : 44)} views:NSDictionaryOfVariableBindings(actionButton)]];

return actionButton; `

CooperRS commented 7 years ago

To me this seems to be a duplicate of https://github.com/CooperRS/RMActionController/issues/26