-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
id object = [DATA objectAtIndex:indexPath.row];
NSLog(@"CELL^1:%@",object);
if ([object isKindOfClass:[NSMutableArray class]]) {
NSMutableArray *dict = (NSMutableArray *)object;
PartyCodeTF= [NSString stringWithFormat:@"%@",[ dict objectAtIndex:0]];
PartyNameTF= [NSString stringWithFormat:@"%@",[ dict objectAtIndex:1]];
PartySNameTF= [NSString stringWithFormat:@"%@",[ dict objectAtIndex:2]];
OpeningTF= [NSString stringWithFormat:@"%@",[ dict objectAtIndex:3]];
ContactNoTF= [NSString stringWithFormat:@"%@",[ dict objectAtIndex:4]];
}
PartyVC *loading=[[PartyVC alloc] initWithNibName:@"PartyVC" bundle:nil];
loading.delegate=self; // protocol listener
loading.PartyCode= PartyCodeTF;
loading.PartyName= PartyNameTF;
loading.Opening =OpeningTF;
loading.PartySName=PartySNameTF;
loading.ContactNo=ContactNoTF;
loading.Track_1=@"2";
[self.navigationController pushViewController:loading animated:YES];
[self performSelector:@selector(closeButton_Click:) withObject:self];
}
我的XIB
文件包含UITableview
。
点击UITableviewCell
关闭xib文件并将数据传递给PartyVC
textfields
时。 self.navigationController
pushViewController给出错误
对于财产
请帮助我......提前谢谢。找不到navigationController。