3
@interface ClassToAddMethodsTo (category1,category2,category3)
...methods go here
@end
@interface ClassToAddMethodsTo (category1,category2,category3)
...methods go here
@end
一个类可以有多个类别,但他们必须分开:
@interface MyClass (FirstCategory)
...
@end
@interface MyClass (SecondCategory)
...
@end
等。
thanks titaniumdecoy – kiran