我已閱讀了很多關於這個問題,但我似乎仍然有所不同。 因此,根據我的理解,EXC_BAD_ACCESS出現內存管理問題。EXC_BAD_ACCESS與IBACTION
事情是,我的似乎沒有(!:))在那裏。事情是,我簡單地在IB中添加了一個按鈕,圓角矩形,沒有圖像。我把它與我在課堂上定義的IBACTION聯繫起來。順便說一句,這個方法什麼也不做(!)。
無論如何,只要我點擊按鈕,應用程序崩潰,與「EXC_BAD_ACCESS」。
就我所知,我確實不會放過任何東西,就是這樣。那裏有什麼問題?
任何線索?
這是我的控制檯日誌:
Loading program into debugger…
sharedlibrary apply-load-rules all
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-148-79
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
[Switching to thread 11779]
[Switching to thread 11779]
(gdb) continue
2010-01-15 09:16:34.800 FlightControl1[1899:207] Table loaded
2010-01-15 09:16:35.200 FlightControl1[1899:207] 23
2010-01-15 09:16:35.350 FlightControl1[1899:207] debug
Program received signal: 「EXC_BAD_ACCESS」.
(gdb)
這是我所得到的,當我走到堆棧:
#0 0x31ec3ebc in objc_msgSend()
#1 0x33605784 in -[UIApplication sendAction:to:from:forEvent:]()
#2 0x336056ec in -[UIApplication sendAction:toTarget:fromSender:forEvent:]()
#3 0x336056b4 in -[UIControl sendAction:to:forEvent:]()
#4 0x3360530c in -[UIControl(Internal) _sendActionsForEvents:withEvent:]()
#5 0x33605f8c in -[UIControl touchesEnded:withEvent:]()
#6 0x335fd9ac in _UIGestureRecognizerUpdateObserver()
#7 0x30da1830 in __CFRunLoopDoObservers()
#8 0x30de9346 in CFRunLoopRunSpecific()
#9 0x30de8c1e in CFRunLoopRunInMode()
#10 0x332e7374 in GSEventRunModal()
#11 0x335adc30 in -[UIApplication _run]()
#12 0x335ac230 in UIApplicationMain()
#13 0x000027a8 in main (argc=1, argv=0x2ffff4d8) at /Users/SomePath/main.m:14
請問您可以在控制檯日誌中粘貼? – 2010-01-15 08:08:24
也請注意,IBACTION本身不過是IB用於查找項目的佔位符。在預處理後查看代碼,IBACTIONs不存在 – KevinDTimm 2010-01-15 08:10:56
我將我的控制檯日誌添加到問題中。 @kevin:說實話,我不知道該怎麼做。 – Icky 2010-01-15 08:18:12