for (UIView *searchBarSubview in [MySearchbarName subviews]) {
if ([searchBarSubview conformsToProtocol:@protocol(UITextInputTraits)]) {
@try {
[(UITextField *)searchBarSubview setBorderStyle:UITextBorderStyleRoundedRect];
[(UITextField *)searchBarSubview setBackgroundColor:[UIColor blackColor]];
[(UITextField *)searchBarSubview setTextColor:[UIColor whiteColor]];
}
@catch (NSException * e) {
// ignore exception
}
}
}
No comments:
Post a Comment