Answer the question
In order to leave comments, you need to log in
How to hide statusbar when showing UIActivityViewController in iOS7?
The question is specifically about iOS7 on the iPhone.
There is a view controller. It has a method declared:
-(BOOL)prefersStatusBarHidden
{
return YES;
}
- (IBAction)share:(id)sender {
NSArray *activityItems = @[.....................................];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil];
[self presentViewController:activityViewController animated:YES completion:nil];
}
Answer the question
In order to leave comments, you need to log in
Try setting UIViewControllerBasedStatusBarAppearance to NO in the application's plist, but then the bar's status will no longer depend on controllers. If this option does not suit you, you can try to inherit UIActivityViewController and override prefersStatusBarHidden.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question