ipad - iOS 7 Popover Controller crashing under xcode 6 -


whenever try use uipopovercontroller on ios7 app crashes. far know, recent issue , occurs when built in xcode 6. don't have ios 7 ipad testing have received info crashlytics experiencing crash. crashes in 7.1 simulator.

any help, appreciated.

cheers

my code crashes, within prepareforsegue::

if ([[segue identifier] isequaltostring:ipadios7colorpickersegue]) {     fccolorpickerviewcontroller *colorpickervc = [segue destinationviewcontroller];     colorpickervc.delegate = self;     colorpickervc.ispopover = yes;     self.popvc = [(uistoryboardpopoversegue *)segue popovercontroller]; // <-- line } 

the error, note uistoryboardpushsegue though set popover in storyboard.

*** terminating app due uncaught exception 'nsinvalidargumentexception',  reason: '-[uistoryboardpushsegue popovercontroller]: unrecognized selector sent instance 0x7a1dd9a0' 

storyboard segue properties

edit

i have view controllers set in unified storyboard. code working, after latest update using xcode 6 started receiving crash reports error.

it appears segue selection not being respected seems call uistoryboardpushsegue.

try :

// write code in .m class  uipopovercontroller *popovercontroller;  -(void)dealloc {      if(self.popovercontroller)     {         [self.popovercontroller dismissmenuanimated:no];     }  } 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -