将项目列表加载到 UITableview 并能够单击并显示所选行的警报。但是,在警报上说“确定”之后,我重新单击已经选择的行,我的代码分解为“线程 1:程序收到信号:EXC_BAD_ACCESS”。请看下面的代码。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSDictionary *playerselected = [exercises objectAtIndex:indexPath.row];
NSString *video = [playerselected valueForKey:@"video"];
NSString *msg = [[NSString alloc] initWithFormat:@"You have selected %@", video];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Player selected"
message:msg
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
[alert release];
[video release];
[msg release];
}
请建议我这里可能是什么问题。