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'
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
Post a Comment