Calling the appropriate setStatusBarHidden per iOS version

前端 未结 4 1253
心在旅途
心在旅途 2020-12-16 02:02

Today my app approved, but I got emails from users says it crash. I figured out that

[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:         


        
4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 02:24

    That's probably the best thing to do, other than limiting your application to >=3.2. anyways, you xcode should give you a warning that the SetStatusBarHidden withAnimation message is not supported ("may not respond to").

提交回复
热议问题