我正在研究一個簡單的iOS應用,我已經接管了工作。我添加了一個具有UIWebView並從表視圖導航到的控制器。我能夠做的就可以了pushViewController但是當我向後導航,應用程序崩潰,在這裏:iOS應用崩潰 - 不確定接下來要看的是什麼
- (void)dealloc
{
myWebView.delegate = nil; // Thread 1 stopped at breakpoint 1
}
在控制檯,它說:
[Switching to process 621 thread 0x13b03]
[Switching to process 621 thread 0x18703]
[Switching to process 621 thread 0x11903]
很顯然,我做了一些錯誤但需要下一個地方看看?我正在使用ARC。
THX
編輯1
This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all
Attaching to process 974.
Pending breakpoint 1 - ""WebViewController.m":57" resolved
2012-03-19 08:11:05.888 SpotFinder[974:11903] Latitude = 37.785834
2012-03-19 08:11:05.889 SpotFinder[974:11903] Latitude = -122.406417
2012-03-19 08:11:06.030 SpotFinder[974:11903] here is a log of places 33
2012-03-19 08:11:11.030 SpotFinder[974:11903] You selected index_path: <NSIndexPath 0x705c0d0> 2 indexes [0, 2]
[Switching to process 974 thread 0x13a03]
[Switching to process 974 thread 0x15e03]
[Switching to process 974 thread 0x13a03]
[Switching to process 974 thread 0x11903]
Current language: auto; currently objective-c
(gdb)
編輯2 堆棧跟蹤:
這些控制檯消息是不相關的。它在控制檯中還說了些什麼? – mattjgalloway 2012-03-19 15:03:03
@timpone [Stack trace](http://stackoverflow.com/a/5660248/296387)? [殭屍啓用](http:// 42games。淨/快音符上設置-nszombieenabled環境變量功能於Xcode中-4 /)? [爲所有例外集設置的斷點](http://developer.apple.com/library/mac/documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/Debugging/Debugging.html#//apple_ref/doc/uid/TP40010215-CH3-SW38 )? – 2012-03-19 15:10:26
嗯...我得到'ARC禁止dealloc明確的消息發送' – timpone 2012-03-19 15:17:20