I want to open the UIPopoverPresentationController through prepare for segue method I tried the below code but it showing some warning error message like "UIStoryboardPopoverSegue is deprecated : first deprecatedin iOS 9.0"- access destinationviewcontroller.popoverpresentation from your segue's perform selector or override of performs....
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
UIStoryboardPopoverSegue* popover = (UIStoryboardPopoverSegue*)segue;
CGFloat horizontalInset = (self.frame.size.width - popover.popoverController.popoverContentSize.width) / (CGFloat)2.0;
CGFloat verticalInset = (self.frame.size.height - popover.popoverController.popoverContentSize.width) / (CGFloat)2.0;
popover.popoverController.popoverLayoutMargins =
UIEdgeInsetsMake(
verticalInset,
horizontalInset,
verticalInset,
horizontalInset);
}}