标签: iphone string sqlite cstring deprecated
答案 0 :(得分:26)
答案 1 :(得分:5)
答案 2 :(得分:1)
[[NSString alloc] initWithBytes:bytes length:count encoding:NSUTF8StringEncoding] 优先于stringWithCString:encoding:
[[NSString alloc] initWithBytes:bytes length:count encoding:NSUTF8StringEncoding]
stringWithCString:encoding:
Apple's Document推荐不是很好,因为原始方法"不会停留在NULL字符处。"