I have a favorites popover and a webView. When you select a cell in the tableview of the popover, the webview should load that URL, but I get a SIGABRT or a BAD_ACCESS.
Here's some code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
if (tableView == favoritesTable1) {
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
textField.text = cell.textLabel.text;
[web loadRequest:[[NSURLRequest alloc] initWithURL:[[NSURL alloc] initWithString:cell.textLabel.text]]];
[cell release];
[favoritesTable1 reloadData];
}
}
I want to get something like this but full working:
PS: The popover is a new viewController from the same class where the webview is set.