Sunday, 15 January 2012

xcode - UIPopoverController iOS 8 crash. -



xcode - UIPopoverController iOS 8 crash. -

i receive frequent crash log of in application , happens in ios8. i've done few testing, seems working alright in simulator.

thread : crashed: com.apple.main-thread 0 libobjc.a.dylib 0x38ccaf46 objc_msgsend + 5 1 uikit 0x2ea813e9 -[uipresentationcontroller runtransitionforcurrentstate] + 444 2 uikit 0x2ea966bb -[uiviewcontroller _presentviewcontroller:presentationcontroller:animationcontroller:interactioncontroller:completion:] + 822 3 uikit 0x2ea9764f -[uiviewcontroller _presentviewcontroller:withanimationcontroller:completion:] + 2850 4 uikit 0x2ea9915b __62-[uiviewcontroller presentviewcontroller:animated:completion:]_block_invoke + 258 5 uikit 0x2e895d93 -[uiviewcontroller presentviewcontroller:animated:completion:] + 194 6 uikit 0x2ed82add -[uipopovercontroller _presentshimmedpopoverfromrect:inview:permittedarrowdirections:animated:] + 188 7 uikit 0x2ed82c75 -[uipopovercontroller presentpopoverfromrect:inview:permittedarrowdirections:animated:] + 276 8 appname 0x001f41db -[viewcontroller selectdate:] (viewcontroller.m:1019) 9 uikit 0x2e7e6d4b -[uiapplication sendaction:to:from:forevent:] + 70 10 uikit 0x2e7e6cf1 -[uicontrol sendaction:to:forevent:] + 44 11 uikit 0x2e7d196b -[uicontrol _sendactionsforevents:withevent:] + 582 12 uikit 0x2e7e675d -[uicontrol touchesended:withevent:] + 588 13 uikit 0x2e7e6437 -[uiwindow _sendtouchesforevent:] + 522 14 uikit 0x2e7dfcf9 -[uiwindow sendevent:] + 544 15 uikit 0x2e7b657d -[uiapplication sendevent:] + 196 16 appname 0x0030df93 -[idletimecheck sendevent:] (idletimecheck.m:23) 17 uikit 0x2ea29df9 _uiapplicationhandleeventfromqueueevent + 13888 18 uikit 0x2e7b4fd1 _uiapplicationhandleeventqueue + 1296 19 corefoundation 0x2b2de58f __cfrunloop_is_calling_out_to_a_source0_perform_function__ + 14 20 corefoundation 0x2b2dd99f __cfrunloopdosources0 + 218 21 corefoundation 0x2b2dc005 __cfrunlooprun + 772 22 corefoundation 0x2b22a621 cfrunlooprunspecific + 476 23 corefoundation 0x2b22a433 cfrunloopruninmode + 106 24 graphicsservices 0x325b00a9 gseventrunmodal + 136 25 uikit 0x2e815359 uiapplicationmain + 1440 26 appname 0x0008f9d5 main (main.m:22)

the code presenting this.

- (void) selectdate:(uibutton *)button { selectstartenddate *selectstartenddate = [[selectstartenddate alloc] initwithnibname:@"selectstartenddate" bundle:[nsbundle mainbundle]]; selectstartenddate.delegate = self; uinavigationcontroller *navcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:selectstartenddate]; selectdate = [[uipopovercontroller alloc] initwithcontentviewcontroller:navcontroller]; selectdate.popovercontentsize = cgsizemake(320, 208 + 44); [selectdate presentpopoverfromrect:button.frame inview:self.view permittedarrowdirections:uipopoverarrowdirectionleft animated:yes]; selectdate.delegate = self; }

thanks!

xcode ios8 uipopovercontroller

No comments:

Post a Comment