iPhone - semi transparent black status bar over the application
In my iphone a开发者_运维百科pplication, I want to have my view to be of height 480 pixesl. And above that, at the top, I want to have semi transparent black status bar over my view so that the back ground image in my view must be slightly visible behind status bar. How can I achieve it?
try this if it works
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent];
and send your imageView to the back.
[self.view sendSubviewToBack:imageView];
The best solution for this problem is to set:
1- self.wantsFullScreenLayout = YES; //in your view controller
2- [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent]; //for your status bar.
精彩评论