我有三个ViewController; A,B,和C.设置委托给自己的委托?
A给出B,B给出C.
如何从C中传递数据回A?
我设置B的委托A.
BViewController *bvc = [self.storyboard instantiateViewControllerWithIdentifier:@"B"];
bvc.delegate = self;
我罐体C的委托设置为A不知何故?
喜欢:
CViewController *cvc = [self.storyboard instantiateViewControllerWithIdentifier:@"C"];
cvc.delegate = (self's parent delegate)
?
还是我需要将C的代表设置为B,然后是A?
目前的手段推或模式? –
目前意味着莫代尔,对不起。 – Padin215
我认为你的代码/逻辑存在一些问题。 'bvc.delegate =(self的父代理)'没有意义,它应该是'bvc.delegate = self' ...如果我明白你想要做什么。 –