摘要: NSStringEncoding strEncode = CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingGB_18030_2000); NSString *strReceive = [[NSString alloc] initWithData:receivedData encoding:strEncode]; 阅读全文
posted @ 2010-08-13 16:49 harvey.ding 阅读(169) 评论(0) 推荐(0) 编辑
摘要: When you create new projects, Xcode prompts you to select a template to start from. From here, you can choose from iPhone and Mac OS X options. Each option lets you craft your application from a pre-d... 阅读全文
posted @ 2010-08-13 10:16 harvey.ding 阅读(318) 评论(0) 推荐(0) 编辑
摘要: By default, Xcode inserts a company name something similar to the following in all new source files (.m .h etc): Copyright (c) 2009 MyCompanyName. All rights reserved.Changing this reference is as sim... 阅读全文
posted @ 2010-08-13 10:15 harvey.ding 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 1、通过函数CFDataRef CFDataCreate(CFAllocatorRef allocator, const UInt8 *bytes, CFIndex length);转化成CFDataRef。2、通过函数CG_EXTERN CGDataProviderRef CGDataProviderCreateWithCFData(CFDataRef data);转化成CGDataProvid... 阅读全文
posted @ 2010-08-13 09:23 harvey.ding 阅读(213) 评论(0) 推荐(0) 编辑