How do I make my view appear below the green bar during a phone call? right now my app is being partially covered by the green bar during a phone call.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- back button text does not change
相关文章
- 现在使用swift开发ios应用好还是swift?
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- How do you detect key up / key down events from a
Idem with a Tab Bar App and iOS6/7, thanks to user1208489's answer.
Values are completely different and weird for each iOS. ;oP
mainAppDelegate.m
Tested on iPhone 4S 7.0.4 (11B554a) with Xcode 4.6.3 (4H1503) and Xcode 5.0.2 (5A3005).
If you're using Interface Builder, make sure your autoresize masks are set so that it resizes the views instead of just having them sit there in the same position. You can use the Toggle In-Call Status Bar option under Hardware in the Simulator to test it.
If you're not using IB, you can set up the autoresize masks in code.
If you're not using views, you'll need to resize your graphics when you get the appropriate notifications.
You can find out when this is about to happen using the following UIApplicationDelegate methods:
Alternatively, you can register for a notification in your UIViewController subclass:
Note that the suggestions above also fire when the device is rotated. If you just want to find when the status bar has grown in height due to an incoming/ongoing phone call. I found the following code to work:
AppDelegate.m