Popular Posts

Jun 13, 2011

Change Status Bar Style

Type this code to  viewdidload function.

[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackOpaque;
         self.navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque;

You can find more options by right click and select on the Go to Definition option.
    UIBarStyleDefault          = 0,
    UIBarStyleBlack            = 1,
    UIBarStyleBlackOpaque      = 1, // Deprecated. Use UIBarStyleBlack
    UIBarStyleBlackTranslucent = 2, // Deprecated. Use UIBarStyleBlack and set the translucent property to YES

No comments:

Post a Comment