摘要: 1. NSSring 转化 NSIntegerNSInteger myInteger = [myString integerValue];int myInt = [myString intValue];2. NSString转化为UNICODE String:NSString *test = @“Test”;char testStr[10];memcpy(testStr, [testcStringUsingEncoding:NSUnicodeStringEncoding], 2*([testlength]));与strcpy相比,memcpy并不是遇到'\0'就结束,而是一定会 阅读全文
posted @ 2013-05-20 16:03 nanoCramer 阅读(1593) 评论(0) 推荐(0) 编辑