我有一个tableview,我创建了一个segue推到另一个视图控制器。现在每一个这样的时间都没有我触及它,我可以保证。我甚至没有在编辑我把它放在文件赛克在Xcode头痛
我的代码:指导我这个SEGUE推向文件
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *acell = [tableView cellForRowAtIndexPath:indexPath];
[self performSegueWithIdentifier:@"cellWasSelected" sender:acell];
}
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([segue.identifier isEqualToString:@"cellWasSelected"])
{
if ([sender isKindOfClass:[UITableViewCell class]])
{
UITableViewCell *selectedCell = sender;
ViewController *myDetViewCont = segue.destinationViewController;
myDetViewCont.navigationItem.title = selectedCell.textLabel.text;
}
}
}
首先单击单元格的Xcode后。 在这里重定向我:action:@selector(handleSingleTap:)];
我用这个我的图片来触发此:[self.navigationController popToRootViewControllerAnimated:YES]
如果我在线程1选择我的主要观点我看到的问题是:
[self performSegueWithIdentifier:@"cellWasSelected" sender:acell];
但什么的问题我使用了这个数千次,并且没有改变它就开始崩溃。
你的问题没有任何意义。你有什么问题,“破”是什么意思? – Rog 2012-08-17 00:48:53
它停止工作,xcode调用一个错误 – kezi 2012-08-17 01:02:26
Crashlog和堆栈跟踪或它从未发生;) – Till 2012-08-17 01:07:06