-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
STPopupController *popupController = [[STPopupController alloc] initWithRootViewController:[[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"SecondViewController"]];
popupController.cornerRadius = 4;
[popupController presentInViewController:self];
[self.navigationController pushViewController:popupController animated:YES];
popupController.marray1=[NSMutableArray arrayWithObject:[self.first objectAtIndex:indexPath.row]];
popupController.marray2=[NSMutableArray arrayWithObject:[self.second objectAtIndex:indexPath.row]];
popupController.marray3=[NSMutableArray arrayWithObject:[self.third objectAtIndex:indexPath.row]];
NSLog(@"%@",[NSMutableArray arrayWithObject:[self.first objectAtIndex:indexPath.row]]);
}发布于 2015-10-20 15:22:16
首先设置DataValues,然后按下屏幕。
希望这能解决你的问题。
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
STPopupController *popupController = [[STPopupController alloc] initWithRootViewController:[[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"SecondViewController"]];
popupController.cornerRadius = 4;
popupController.marray1=[NSMutableArray arrayWithObject:[self.first objectAtIndex:indexPath.row]];
popupController.marray2=[NSMutableArray arrayWithObject:[self.second objectAtIndex:indexPath.row]];
popupController.marray3=[NSMutableArray arrayWithObject:[self.third objectAtIndex:indexPath.row]];
[popupController presentInViewController:self];
[self.navigationController pushViewController:popupController animated:YES];
NSLog(@"%@",[NSMutableArray arrayWithObject:[self.first objectAtIndex:indexPath.row]]);
}https://stackoverflow.com/questions/33229093
复制相似问题