摘要:
需要在A类中修改B类的方法ClassA.h@protocol ClassADelegate//在类A中声明并且定义一个代理-(void)ChangeObjectFromClassB;@end@interface ClassA: NSObject {id<ClassADelegate> delegate;}@property (nonatomic,assign) id <ClassADelegate> delegate;@endClassA.m@implementation ClassA@synthesize delegate;...do something-(void) 阅读全文