1

How do they have a translucent status bar on the new Google Maps App? From what I have been trying, setting:

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES];

Doesn't do the job.

I would like to set my iPhone app status bar to translucent in a way that the view behind it could change rather than a static image.

dgund
  • 3,459
  • 4
  • 39
  • 64
moshikafya
  • 3,190
  • 5
  • 22
  • 27

2 Answers2

2

You need to set the wantsFullScreenLayout property on your UIViewController to yes as well as setting the the status bar to translucent.

See the UIViewController class reference for full details.

Karl Monaghan
  • 880
  • 9
  • 14
0

If you're using xCode 4.5, there's a setting in target summary:

enter image description here

jhilgert00
  • 5,479
  • 2
  • 38
  • 54