0
当我浏览点击行我推兴趣点,但是当我点击回应用程序崩溃。 但如果我评论[nextControllerp发布];它的工作原理或5或6的时间,然后它崩溃应用程序崩溃当点击回
(void)tableView:(UITableView *)TableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[TableView deselectRowAtIndexPath:indexPath animated:YES];
PointOfInterest *nextControllerp=[[PointOfInterest alloc] initWithNibName:@"PointOfInterest" bundle:nil];
if([LocationList count]!=0 && [LocationListId count]!=0)
{
nextControllerp.locName=[LocationList objectAtIndex:indexPath.row];
nextControllerp.LocationId=[LocationListId objectAtIndex:indexPath.row];
[self.navigationController pushViewController:nextControllerp animated:YES];
}
[nextControllerp release];
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStylePlain target:nil action:nil];
self.navigationItem.backBarButtonItem=backButton;
[backButton release];
}
感谢您的回复。 – shivraj 2011-03-04 12:35:22