
UIButton *temp = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [temp setTitle:@“test” forState:UIControlStateNormal]; [temp setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
UIButton *temp = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [temp setTitle:@“test” forState:UIControlStateNormal]; [temp setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
遇见资源网 objective-c UIButton 如何设置字体颜色 http://www.ox520.com/17721.html