Resize for in-call status bar?

前端 未结 11 585
名媛妹妹
名媛妹妹 2020-11-29 03:06

How can I make my view resize in response to the in-call status bar from my nib?

I figured it would just be setting the resize properties, but they\'re not enabled f

11条回答
  •  执念已碎
    2020-11-29 03:40

    You're looking for -[UIApplication statusBarFrame] and, in your UIApplicationDelegate, you should implement this delegate method to be notified of when the status bar's frame changes:

    - (void)application:(UIApplication *)application didChangeStatusBarFrame:(CGRect)oldStatusBarFrame  
    

提交回复
热议问题