I’m working on an iPhone/iPad application and I’ve got an unpleasant issue.
There is the class named MyWebViewController with a
@property (nonatomic, retain) NSString* currentPage;
and few methods:
- (void)webViewDidFinishLoad:(UIWebView *)webView
{
...
[self method1:self.currentPage];
...
}
- (void)method1:(NSString *)key
{
...
[self method2];
...
}
During dubugging when it comes to [self method2]; row the app crashes with EXC_BAD_ACCESS exception but points to [self method1:self.currentPage]; row!
I tried to enable NSZombie but it didn’t help.
So I’m completely confused and can’t get what to do. That’s why I’d really appreciate your help!
Unless you have a typo in your question, your method1 signature does not take a parameter,
but in your code, you call the method with the parameter.