這就奇怪了..我的應用程序工作好之前,我複製的目標,使我的應用程序的付費版本。當我想說明一個UIViewController,它被加載,並顯示,但我的應用程序崩潰,並在設備日誌中給出此錯誤:應用程序崩潰
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x341c2fbc objc_msgSend + 16
1 UIKit 0x3735fdfe -[UINavigationController topViewController] + 46
2 UIKit 0x37395ae4 -[UINavigationController viewDidDisappear:] + 80
3 UIKit 0x373636ae -[UIViewController _setViewAppearState:isAnimating:] + 138
4 UIKit 0x373beaea -[UIViewController _endAppearanceTransition:] + 258
5 UIKit 0x373ecec8 -[UIViewController endAppearanceTransition] + 16
6 UIKit 0x3741cf04 -[UIWindowController transitionViewDidComplete:fromView:toView:] + 1404
7 UIKit 0x373bc934 -[UITransitionView notifyDidCompleteTransition:] + 140
8 UIKit 0x373bc7b8 -[UITransitionView _didCompleteTransition:] + 896
9 UIKit 0x37336814 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 464
10 UIKit 0x3733bfb2 -[UIViewAnimationState animationDidStop:finished:] + 46
11 QuartzCore 0x34a8dba0 CA::Layer::run_animation_callbacks(void*) + 196
12 libdispatch.dylib 0x36bace86 _dispatch_main_queue_callback_4CF$VARIANT$up + 190
13 CoreFoundation 0x33f4b2d6 __CFRunLoopRun + 1262
14 CoreFoundation 0x33ece4d6 CFRunLoopRunSpecific + 294
15 CoreFoundation 0x33ece39e CFRunLoopRunInMode + 98
16 GraphicsServices 0x30752fc6 GSEventRunModal + 150
17 UIKit 0x3734f73c UIApplicationMain + 1084
18 MyApp 0x00002674 main (main.m:15)
19 MyApp 0x00002624 start + 32
我的錯誤在哪裏?誰能幫我?
Xcode可以幫助你找到殭屍。 http://stackoverflow.com/questions/2190227/how-do-i-setup-nszombieenabled-in-xcode-4/8863063#8863063這會告訴你,當保留一個給定對象的數量變化 – Besi 2012-05-08 08:56:24