摘要:
// 装载内容的容器 NSTextStorage *storage = [NSTextStorage new]; [storage replaceCharactersInRange:NSMakeRange(0, 0) withString:@"未选择的路-弗罗斯特\n\n黄色的树林里分出两条路,\n 阅读全文
摘要:
NSFontAttributeName 设置字体属性,默认值:字体:Helvetica(Neue) 字号:12 NSForegroundColorAttributeNam 设置字体颜色,取值为 UIColor对象,默认值为黑色 NSBackgroundColorAttributeName 设置字体所 阅读全文
摘要:
/** 下载文件 */ @interface DownloadFileItem : NSObject - (id)initWithDownloadFile:(NSString *)path; /** 暂停下载,可以恢复 */ - (void)suspend; /** 取消,不可以恢复 */ - (v 阅读全文
摘要:
- (void)get1 { // 1.创建回话对象 NSURLSession *session = [NSURLSession sharedSession]; // 2. 根据回话对象来创建task NSURL *url = [NSURL URLWithString:JSON_LONG_URLSt 阅读全文