UIAlertController tint color defaults to blue on highlight

后端 未结 11 1021
傲寒
傲寒 2021-01-01 10:56

I\'m use the following code to present a UIAlertController action sheet with the item text as red. I\'ve used the tint property to set the color.

UIAlertCont         


        
11条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-01 11:10

    You can also change the app tint color in appdelegate.

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        self.window.tintcolor = [UIColor yellowColor];
        return YES;
    }
    

    works perfect for me.

提交回复
热议问题