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