在这种情况下,我将下面的值分配给stringToDisplay
并希望将它们发送到SegViewController
,它也保留stringToDisplay
。我需要在cell.textLabel.text
这里使用isEqualToString: @"Fire House Gallery
吗?我会用indexPath
还是UITableViewCell
在这里?
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
SegViewController *seg = segue.destinationViewController;
seg.delegate = (id)self;
if ("......" isEqualToString: @"Firehouse Gallery"])
{
seg.stringToDisplay = @"Firehouse Gallery";
}
else
{
seg.stringToDisplay = @"Frog Hollow Craft Center";
}
}
谢谢你,格雷格