I am using UIPopoverController
in iOS 8 iPad for imagepicker
.Its working in iOS 7 but not in iOS 8.The popover is not displayed and popoverControllerDidDismissPopover
is called immediately.Please suggest a solution..
Here the code am using:
UIPopoverController *popVC= [[UIPopoverController alloc] initWithContentViewController:pickerController];
_pop = popVC;
_pop.delegate = self;
[_pop presentPopoverFromRect:attachBtnFrame inView:_sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:NO];
Thanks..
Finally found the solution: Present the Popover in main thread as below.
Put this Method in your appDelegate.m
now, when you want to use PopoverController just Check system OS by above method like
than use this Method
this Method works for me very well and it should work for you...