摘要: NSArray+LogNSArray+Log.h#import @interface NSArray (Log)@endNSArray+Log.m#import "NSArray+Log.h"@implementation NSArray (Log)- (NSString *)description... 阅读全文
posted @ 2015-08-18 21:04 ios-C 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Person.h#import @interface Person : NSObject@property(nonatomic,copy)NSString*name;@property(nonatomic,assign)long int ID;-(void)addObserver;//添加观察者-(... 阅读全文
posted @ 2015-08-18 18:03 ios-C 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Student.h#import @interface Student : NSObject@property (nonatomic, copy) NSString *name;- (instancetype)initWithName:(NSString *)name;//单例:default st... 阅读全文
posted @ 2015-08-18 16:38 ios-C 阅读(94) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { /* 本地存储(数据持久化): 1.NSUserdefaults 2.NSCoding 3.Sqlite 4.文件存储 ... 阅读全文
posted @ 2015-08-18 16:31 ios-C 阅读(150) 评论(0) 推荐(0) 编辑