当我以模态方式展示我的 uiimagepickerviewcontroller 时,我在我的应用程序中隐藏了状态栏。
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];
在回调方法中:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
我执行以下方法:
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES];
打电话之前:
[picker dismissViewControllerAnimated:YES completion:^() {}];
我尝试在完成块中“显示”状态栏无济于事。关闭 uiimagepickerviewcontroller 后,我应该如何让状态栏重新出现?