标签:style blog io ar color 使用 sp on div
1 @interface Person (Simon) 2 - (void) study; 3 @end 4 5 Person+Simon.m 6 @implementation Person (Simon) 7 - (void) study 8 { 9 NSLog(@"学习----"); 10 } 11 @end
1 #import <Foundation/Foundation.h> 2 #import "Person.h" 3 #import "Person+Simon.h" 4 5 int main(int argc, const char * argv[]) { 6 @autoreleasepool { 7 Person *p = [[Person alloc] init]; 8 [p study]; 9 } 10 return 0; 11 } 12
[Objective-c 基础 - 2.8] category分类/类别/类目
标签:style blog io ar color 使用 sp on div
原文地址:http://www.cnblogs.com/hellovoidworld/p/4119362.html