newlist

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  ios

摘要://追加数据NSString *homePat = NSHomeDirectory();NSString *sourcePath = [homePath stringByAppedingPathComponent:@"testfile.ext"];NSFileHandle *fileHandle = [NSFileHandle fileHandleForUpdatingAtPath:sourcePath];//将结点跳转到文件末尾[fileHandle seekToEndOfFile];NSString *str = @"追加的数据";NSData *s 阅读全文
posted @ 2013-08-17 08:23 一枚程序 阅读(395) 评论(0) 推荐(0)

摘要:#import #import "Person.h"int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; // insert code here... NSLog(@"Hello, World!"); Person *person = [[Person alloc] initWithAge:30 identify:23452342]; NSLog(@"person.age:%d",[ 阅读全文
posted @ 2013-08-04 10:33 一枚程序 阅读(1260) 评论(1) 推荐(0)