I have the following setup
webview = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].bounds];
Occasionally I issue the method
[webview goBack];
and this sometimes brings my app down in flames with EXC_BAD_ACCESS (SIGBUS). I tried to wrap this around a @try:
@try
{
[webview goBack];
}
@catch (id theEx)
{
NSLog(@"%@", theEx);
}
but this still brings tears of grief.
Is there a way I can make sure it does not crash? Perhaps checking if I can in fact go back?