I am new to ios and I have a problem on displaying UIActivityViewController. I have done the code and it works fine on ios8&9 iPad, but when I tested on ios10 iPad 5th and the UIActivityViewController frame was restricted by its parent view controller.
The desired layout:
UIActivityViewController *vc = [[UIActivityViewController alloc]initWithActivityItems:activityItems applicationActivities:nil];
vc.excludedActivityTypes = @[UIActivityTypeMessage];
vc.popoverPresentationController.barButtonItem = self.shareButton;
vc.popoverPresentationController.permittedArrowDirections =
UIPopoverArrowDirectionAny;
vc.popoverPresentationController.delegate = self;
vc.modalPresentationStyle = UIModalPresentationPopover;
Can anyone give me some hints on that? Thanks in advance.