I am working on a simple iOS app that I have taken over at work. I added a controller that has a UIWebView and is navigated to from a table view. I am able to do a pushViewController on it but when I navigate back, the app crashes at here:
- (void)dealloc
{
myWebView.delegate = nil; // Thread 1 stopped at breakpoint 1
}
In the console, it says:
[Switching to process 621 thread 0x13b03]
[Switching to process 621 thread 0x18703]
[Switching to process 621 thread 0x11903]
Obviously, I’ve made some mistake but what would need the next place to look? I am using ARC.
thx
edit 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)
edit 2
stacktrace:

Never ever call dealloc directly whether it is in a non-ARC environment or with ARC enabled.
In non-ARC you call
release, then the dealloc is called by the system on that particular object.Dealloc with ARC enabled is called(again, by the system) when there is no reference any more on that object.