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