Closed dazzyjong closed 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; `
To me this seems to be a duplicate of https://github.com/CooperRS/RMActionController/issues/26
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; `