标签:ios objective-c 分类 category
// Person.h #import <Foundation/Foundation.h> @interface Person : NSObject @end
#import "Person.h" @implementation Person @end
#import "Person.h" @interface Person (action) - (void)eat; - (void)run; @end
#import "Person+action.h" @implementation Person(action) - (void)eat { } - (void)run { }
标签:ios objective-c 分类 category
原文地址:http://blog.csdn.net/xufeng0991/article/details/43406223