摘要: 1、NSThread (1)创建线程对象的方法: a、-(id) init; b、-(id) initWithTarget:(id) target selector:(SEL) selector object:(id) argument; c、+(void) detachNewThreadSelector:(SEL) aSelector toTarget:(id) aTarget withObject:(id) anArgument //使用这个类方法,不用release(因为没有使用alloc) 启动一个线程用star,结束一个线程用exit(使用exit时,首先要将... 阅读全文
posted @ 2012-02-15 21:57 大鱼大鱼 阅读(1432) 评论(1) 推荐(0) 编辑
摘要: 1、NSArray *array = [[NSArray arrayWithObjects:@"Apple",@"Google",@"Microsoft",nil];[array writeToFile:@"plist.txt" atomically:NO];会在当前文件夹下找到plist.txt,格式如下( Apple, Google, Microsoft)NSArray *array2 = [NSArray arrayWithContentOfFile:@"plist.txt"];NSLog 阅读全文
posted @ 2012-02-15 21:47 大鱼大鱼 阅读(360) 评论(0) 推荐(0) 编辑