【发布时间】:2012-12-28 03:45:38
【问题描述】:
我正在开发 Storyboards。我使用了一个表格视图,并在其单元格上创建了一个从该表格视图单元格原型到新视图控制器的 Segue。
我也包含了一个方法
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
UITableViewCell *cell=sender;
NSLog(@"%@",cell.textLabel.text);
thirdViewController *thid=[segue destinationViewController];
thid.strValue=cell.textLabel.text;
}
但它没有被调用。
这个方法什么时候被调用..?
我们将不胜感激。
谢谢 维卡斯
【问题讨论】:
-
那个方法在哪里?转场还会发生吗?
标签: iphone xcode methods storyboard call