//从storyboard手动加载一个新的视图控制器
-(void)tableView:(UITableView*)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath{
     UINavigationController *navigationController = [self.storyboard instantiateViewControllerWithIdentifier:@"ListNavigationController"];
      ListDetailViewController *controller = (ListDetailViewController*)navigationController.topViewController;  controller.delegate = self;
    Checklist *checklist = _lists[indexPath.row];
    controller.checklistToEdit = checklist;
    
    [self presentViewController:navigationController animated:YES completion:nil];  // 显示在桌面上
    
}

解决方案 »

  1.   

    这个问题可能有多个原因产生
    1.self.storyboard是不是为空
    2.storyboard中vc的storyboad id有没设置对等等打个断点跟踪一下
      

  2.   

    我的self.storyboard不为空,然后storyboard id也是对的,我觉得是好像这个函数都没执行到,因为我是新手,照着书上打的,书上说加了这段代码后会在cell行上新增一个展示细节的图标,但是我加了这段代码后并没有任何效果,还是我对这段代码的理解错了,谢谢