gpt4 book ai didi

iphone - popViewController动画:YES crashes my app

转载 作者:行者123 更新时间:2023-12-02 00:27:08 26 4
gpt4 key购买 nike

当我执行 [self.navigationController popViewControllerAnimated:YES] 时,我的应用程序崩溃了。

它在设备上比在模拟器上崩溃更多。请建议如何解决这个问题?

Date/Time:       2010-11-09 10:51:41.325 +0800OS Version:      iPhone OS 4.0.1 (8A306)Report Version:  104Exception Type:  EXC_BAD_ACCESS (SIGBUS)Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000Crashed Thread:  0Thread 0 Crashed:0   libobjc.A.dylib                0x0000286e objc_msgSend + 181   CoreFoundation                 0x00002c30 -[NSObject(NSObject) release] + 242   libobjc.A.dylib                0x00003c1a objc_setProperty + 1143   UIKit                          0x000693d4 -[UINavigationController setDisappearingViewController:] + 244   UIKit                          0x0007d5c0 -[UINavigationController _clearLastOperation] + 405   UIKit                          0x0007d4b4 -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 5566   UIKit                          0x0007d248 -[UINavigationTransitionView _notifyDelegateTransitionDidStopWithContext:] + 2047   UIKit                          0x0007d0b6 -[UINavigationTransitionView _navigationTransitionDidStop] + 4508   UIKit                          0x00059974 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 1849   UIKit                          0x0005987e -[UIViewAnimationState animationDidStop:finished:] + 3410  QuartzCore                     0x000127ba run_animation_callbacks(double, void*) + 28611  QuartzCore                     0x0001265c CA::timer_callback(__CFRunLoopTimer*, void*) + 11612  CoreFoundation                 0x00071a54 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 813  CoreFoundation                 0x00073ede __CFRunLoopDoTimer + 85414  CoreFoundation                 0x0007485e __CFRunLoopRun + 108215  CoreFoundation                 0x0001d8e4 CFRunLoopRunSpecific + 22416  CoreFoundation                 0x0001d7ec CFRunLoopRunInMode + 5217  GraphicsServices               0x000036e8 GSEventRunModal + 10818  GraphicsServices               0x00003794 GSEventRun + 5619  UIKit                          0x000062a0 -[UIApplication _run] + 39620  UIKit                          0x00004e10 UIApplicationMain + 66421  tenpay                         0x00006124 main (main.m:13)22  tenpay                         0x00002324 start + 44

最佳答案

myviewcontroller = [[[MyViewController alloc]init]autorelease];
[self.navigationController pushViewController:myviewcontroller animated:YES];
[myviewcontroller release]; //This is my bug !!! I just fixed it.

关于iphone - popViewController动画:YES crashes my app,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4130179/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com