[ios] Fixed sharing on iPad.

This commit is contained in:
Ilya Grechuhin 2015-09-23 13:07:11 +03:00
parent b6e6ea7178
commit cef5626fac

View file

@ -50,17 +50,6 @@
[parentVC presentViewController:self animated:YES completion:nil];
}
- (void)viewWillTransitionToSize:(CGSize)size
withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator
{
[self dismissViewControllerAnimated:YES completion:nil];
[coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> context) {}
completion:^(id<UIViewControllerTransitionCoordinatorContext> context)
{
[self presentInParentViewController:self.ownerViewController anchorView:self.anchorView];
}];
}
- (BOOL)shouldAutorotate
{
return YES;