如何在Iphone中的两个独立uiview之间调用协议?
我在一个UIView类中声明了协议,我想在另一个UIView类中实现协议方法。 但协议方法并没有调用我能做什么。 任何人帮助我
你在UploadView中调用了委托函数吗? 此外,由于它是可选function,您必须在调用之前检查委托对该function的响应。
- (void)yourFunction { ... if ([self.delegate respondsToSelector:@selector(takeAnotherPhoto:)]) { [delegate takeAnotherPhoto:self]; } ... }