摘要:
NSURL*url = [NSURLURLWithString:@“http.....”]; UIImage*image = [UIImageimageWithData:[NSDatadataWithContentsOfURL:url]]; uiimage.image= image; 阅读全文
摘要:
http://stackoverflow.com/questions/12914788/uilinebreakmodewordwrap-is-deprecated 阅读全文
摘要:
http://stackoverflow.com/questions/8460340/interface-type-cannot-be-statically-allocated 阅读全文
摘要:
1. NSString转换成NSDataNSString* str = @"teststring";NSData* data = [str dataUsingEncoding:NSUTF8StringEncoding];2. NSData转换成NSStringNSString *aString = [[NSString alloc] initWithData:adataencoding:NSUTF8StringEncoding];3. JSON格式的NSString转换成NSMutableDictionaryNSError *err = nil;NSArray *arr = 阅读全文