6

Can someone advise me on how I can implement a "touch to return to call" type of UI as seen in the screenshot below?

enter image description here

My intention is to display the bar on top when my application receives a notification.

Any guide or resources on this will be greatly appreciated

N West
  • 6,768
  • 25
  • 40
Zhen
  • 12,361
  • 38
  • 122
  • 199

1 Answers1

2

There is several ways how you can place something below your status bar.
1. You can add UIView to UIWindow and position it to be under status bar. Set status bar style to black translucent, so the underneath view will be visible. Resize rootViewController appropriately, so it won't overlap your view.
2. Also, you can set wantsFullScreenLayout property of your rootViewController to true, so it'll cover the entire screen and manage view hierarchy inside it. You also need to set status bar style to black translucent.

Alternatively, you can add views above status bar, but I don't think that this is a good user experience. Here is how you can do that: Add UIView Above All Other Views, Including StatusBar

Community
  • 1
  • 1
Evgeny Shurakov
  • 6,062
  • 2
  • 28
  • 22
  • Shuarkov, I want my new view to be between the status bar and navigation bar. The new view that was added will overlap with the navigation bar. Resizing the root view controller (a table in my case) does nothing to adjust the positioning of the navigation bar, resulting in the screenshot in my initial question – Zhen Aug 17 '11 at 12:29
  • Your rootViewController is UINavigationController (its superview is UIWindow). Your controller with tableView is just the top controller in navigation stack. – Evgeny Shurakov Aug 17 '11 at 13:12
  • How did you resize the UINavigationController? I'm trying to set the frame using "keyWindow.rootViewController.view.frame" but nothing happens... – mr.sosa Jun 01 '14 at 04:46