iphone开发常用编码
摘要:
1. stringWithFormat 用法: [NSString stringWithFormat:@"Hight: %d°%@ Low: %d°%@", [Temp],@"C",[lTemp],@"C"]; NSString to NSData:NSString* str= @"kilonet";NSData* data=[str dataUsingEncoding:NSUTF8StringEncoding]; 2. NSDate 用法: NSDate *today; NSDate *tom 阅读全文
posted @ 2012-09-23 22:12 barani 阅读(182) 评论(0) 推荐(0) 编辑