我们正在使用第三方SDK来创建弹出式UIViews(想想社交登录的东西)。按钮文本是iOS7蓝色,但我们需要覆盖它们。
想知道我是否需要修补SDK或者我是否可以覆盖其他级别?
答案 0 :(得分:0)
放置以下
[[UIButton appearance] setTitleColor:[UIColor purpleColor] forState:UIControlStateNormal];
在
- ( BOOL ) application:( UIApplication* ) application didFinishLaunchingWithOptions:( NSDictionary* ) launchOptions
您将更改应用程序中所有按钮的颜色。
要更改更具选择性的阅读,请先阅读本文http://nshipster.com/uiappearance/