I am using cordova with my iOS8 application. I try to load a web page in which I further navigate to selection elements like drop down which appears as a popover. When I try to switch randomly between various selection elements , the app crashes with the following error.
Terminating app due to uncaught exception 'NSGenericException', reason: 'UIPopoverPresentationController () should have a non-nil sourceView or barButtonItem set before the presentation occurs.'
It looks like the selection elements controller is detached and can not get back to the app control because of which it crashes.On searching ,I guess the issue because of changed behavior of UIPopoverPresentationController in iOS8 but Can anyone suggest how to fix it with cordova library in iOS8? P.S the app works fine till iOS7.