这会正确设置委托,并且一切正常:
UINavigationController *nc = [segue destinationViewController];
RecipeAddViewController *rc = [nc.viewControllers objectAtIndex:0];
rc.delegate = self;
当我做:
[[[[[segue destinationViewController] viewControllers]objectAtIndex:0]delegate]self];
委托方法永远不会被调用。为什么是这样?