iOS解除视图控制器后执行segue

时间:2013-09-30 14:52:53

标签: iphone ios objective-c ipad

我的应用程序使用两个不同的视图控制器存储用户配置。第一个仅在创建新配置时呈现,这是配置的名称。第二个是配置本身,通常由accessoryButtonTappedForRowWithIndexPath提出

当他们解雇第一个设置名称的视图控制器时,是否有可能:

[self.delegate addViewerViewController:self didFinishAddingItem:viewer];

它可以直接显示配置视图控制器而无需点击?通常这是由

调用的
- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath
{
    nameAtAccessoryIndex = [viewerKeys objectAtIndex:indexPath.row];
    [self performSegueWithIdentifier:@"EditSettings" sender:indexPath];
}

1 个答案:

答案 0 :(得分:0)

看起来你正在使用performSegueWithIdentifier:不正确。您的发件人应为self

prepareForSegue:添加到您的视图控制器,并在其中的viewer上设置segue.destinationViewController

相关问题