摘要: NSString *executableFile = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleExecutableKey]; NSString*version = [[[NSBundle mainBundle] infoDictionary]objectForKey:(NSString *)kCFBundleVersionKey];还有其它很多信息可由infoDictionary获得,以下是官方文档里的说明:information Property List KeysStandard . 阅读全文
posted @ 2012-11-14 16:43 xiaoou 阅读(889) 评论(0) 推荐(0) 编辑
摘要: //将NSData转化为NSString NSString* str = [[NSString alloc] initWithData:response encoding:NSUTF8StringEncoding];//将NSString 转化为NSData (NSString.h)- (NSData *)dataUsingEncoding:(NSStringEncoding)encoding; //载一个字符串中删除一个字符或字符串[_display deleteCharactersInRange:NSMakeRange(index_of_char_to_remove, 1)];数学转换为. 阅读全文
posted @ 2012-11-14 15:45 xiaoou 阅读(89694) 评论(2) 推荐(3) 编辑