摘要: @protocol ADelegate<NSObject> - (void) methods;@end@interface ClassA:NSObject- (void) Amethods@property(assign, non atomic) id <ADelegate>delegate;@end@implementation ClassA- (void) Amethods{ [delegate methods]; ClassB *classB = (ClassB *)delegate; [classB Bmethods];}@end@interface Class 阅读全文
posted @ 2012-12-07 13:09 hellocby 阅读(251) 评论(0) 推荐(0) 编辑