There are definitely subtle differences.
, , , , MySpecialViewController MySpecialViewControllerDelegate, . , , , , MySpecialViewController. , .
( ) . , . , #import . #import .m, , , API.
- , . , Parent Child , , #import "Child.h". Child foo:bar: Parent. FooProtocol:
@protocol FooProtocol
- (void) foo: (int) arg1 bar: (BOOL) arg2;
@end
Parent.h:
@interface Parent : SomeBaseClass<FooProtocol> {
}
Child :
@interface Child {
}
@property (assign) id<FooProtocol> fooHandler;
[fooHandler foo: 1 bar: YES];
Parent ( Parent.h). , FooProtocol FooProtocol.h, Parent.h. , FooProtocol - Child, Child.h, , , , Child.
, , , .