摘要:
NSString *executableFile = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleExecutableKey]; NSString*version = [[[NSBundle mainBundle] infoDictionary]objectForKey:(NSString *)kCFBundleVersionKey];还有其它很多信息可由infoDictionary获得,以下是官方文档里的说明:information Property List KeysStandard . 阅读全文
摘要:
//将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)];数学转换为. 阅读全文