我正在尝试确定我indexPath
的选择行,UITableView
以便我可以相应地传递相关数据。现在,0
无论我选择什么单元格,它都会继续记录。任何想法为什么?(是的,IBOutlet
桌子的连接正确)。
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([[segue identifier] isEqualToString:@"patientChart"])
{
UITabBarController *tabBar = (UITabBarController *)segue.destinationViewController;
PatientChartViewController *vc = [tabBar.childViewControllers objectAtIndex:0];
NSIndexPath *path = [self.appointmentTableView indexPathForSelectedRow];
vc.appointmentDictionary = [self.appointmentArray objectAtIndex:path.row];
}
}