viewcontroller
中显示了两个表视图,但是当我从第二个tableview应用程序崩溃中选择单元格时。请帮我。这是我的委托方法
- (void)tableView:(UITableView *)atableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
if (atableView == self.tableView) {
NSLog(@"selected %@ row", [[[marrXMLData objectAtIndex:indexPath.row] valueForKey:@"url"] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]);
NSString *link = [[[marrXMLData objectAtIndex:indexPath.row] valueForKey:@"url"] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
NSLog(@"link%@",link);
stringNotifyLink = [NSString stringWithString:link];
if (stringNotifyLink!=NULL) {
NSString *fullURL = [NSString stringWithFormat:@"http://myweb.co.in/portal/%@",stringNotifyLink];
NSURL *url = [NSURL URLWithString:fullURL];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[self.WebViewHome loadRequest:requestObj];
tableView.alpha = 0;
[tableView reloadData];
} else {
tableView.alpha = 1;
[tableView reloadData];
}
}else{
NSLog(@"ssssssssss");
dispatch_async(dispatch_get_main_queue(), ^{
[self viewDidLoad];
});
}}