// // Person.h #import @interface Person : NSObject { int _age; } /* setter: 作用: 用于给成员变量赋值 1.一定是对象方法 2.一定没有返回值 3.方法名称以set开头, 后面跟上需要赋值的成员变量名称, 并且去掉下划线,... ...
分类:
其他好文 时间:
2017-08-22 23:21:58
阅读次数:
302
// // Person.h #import @interface Person : NSObject /* { @public int _age; int age; } */ /* 从Xcode4.4以后apple对@property进行了一个增强, 以后只要利用一个@property就可以同时生... ...
分类:
其他好文 时间:
2017-08-22 23:14:40
阅读次数:
208
// // Person.h #import @interface Person : NSObject { @public int _age; int age; int _number; } /* @porperty是一个编译器指令 在Xocde4.4之前, 可以使用@porperty来代替gett... ...
分类:
其他好文 时间:
2017-08-22 23:13:02
阅读次数:
171
// // Person.h #import @interface Person : NSObject { @public int _age; @protected double _height; @private NSString *_name; @package double _weight..... ...
分类:
其他好文 时间:
2017-08-22 23:08:07
阅读次数:
206
// Person.h #import @interface Person : NSObject { int _age; double _height; double _weight; NSString *_name; NSString *_tel; NSString *_email; } - (v... ...
分类:
其他好文 时间:
2017-08-22 23:03:25
阅读次数:
156
// // Animal.h #import @interface Animal : NSObject { int _age; } - (void)eat; //.h是变量和方法的声明, .m文件是对方法的实现。 @end // // Animal.m #import "Animal.h" @imp... ...
分类:
其他好文 时间:
2017-08-22 20:49:32
阅读次数:
152
// // Phone.h #import typedef enum { kFlahlightStatusOpen, kFlahlightStatusClose } FlahlightStatus; // 被继承的这个类我们称之为父类/ 超类 @interface Phone : NSObject ... ...
分类:
其他好文 时间:
2017-08-22 20:13:01
阅读次数:
220
// // Phone.h #import // 被继承的这个类我们称之为父类/ 超类 @interface Phone : NSObject { int _cpu; } // 打电话 - (void)signalWithNumber:(NSString *)number; // 发短信 - (vo... ...
分类:
其他好文 时间:
2017-08-22 19:45:14
阅读次数:
154
1.JNI简介 JNI全称为Java Native Interface; 从Java1.1开始,JNI就成为java平台的一部分,它允许Java代码和其他语言写的代码(如C&C++)进行交互; 并非从Android发布才引入JNI的概念的。 2.什么是NDK? NDK全称为native develo ...
分类:
移动开发 时间:
2017-08-22 18:42:56
阅读次数:
223
// // Kline.h // day13 #import @interface Kline : NSObject { int _max; int _min; int _average; } - (void)setMax:(int)max; - (void)setMin:(int)min; - (... ...
分类:
其他好文 时间:
2017-08-22 17:33:50
阅读次数:
139