Change Text Color of Items in UIActionSheet - iOS 8

前端 未结 9 1433
星月不相逢
星月不相逢 2020-11-29 02:26

I had been using following code to change text color of items which I add in UIActionSheet.:

- (void)willPresentActionSheet:(UIActionSheet *)act         


        
9条回答
  •  余生分开走
    2020-11-29 02:44

    Changing the tintColor of window worked for me.

    In the - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions method

    write this:

    [self.window setTintColor:[UIColor redColor]];
    

    This changed the font color of all UIActionSheet objects.

提交回复
热议问题