UIDocumentInteractionController preview the file will show the status bar
UIDocumentInteractionController preview the file will show the status bar
- Subject: UIDocumentInteractionController preview the file will show the status bar
- From: li shunnian <email@hidden>
- Date: Sat, 26 Oct 2013 16:22:31 +0800
Hi all,
My app is a full screen one. When I use UIDocumentInteractionController to preview a file, it will show the hidden status bar.
I tried to use the following code, but the status bar will show for a second then hide again. After the quick look view dismissed, the status bar will show for a second again.
- (void)documentInteractionControllerWillBeginPreview:(UIDocumentInteractionController *)controller
{
[[UIApplication sharedApplication] setStatusBarHidden:YES];
}
- (void)documentInteractionControllerDidEndPreview:(UIDocumentInteractionController *)controller
{
[[UIApplication sharedApplication] setStatusBarHidden:YES];
}
Can anyone give me some advice for preventing the status bar show?
Regards,
Li Shunnian.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden