文件名称:DownLoad 下载练习
文件大小:53KB
文件格式:ZIP
更新时间:2019-01-25 13:03:45
iOS DownLoad
DownLoad - (IBAction)buttonDidPress:(id)sender { if (self.downLoad) { if (self.boolen) { [self.downLoad pause]; self.boolen = NO; } else { [self.downLoad resume]; self.boolen = YES; } } else { // 文件路径 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *path = [paths lastObject]; path = [path stringByAppendingFormat:@"%@\aa", path]; NSLog(@"*********** %@", path); self.downLoad = [[DownLoadTask alloc] init]; [self.downLoad downLoadTaskWithURL:[NSURL URLWithString:@"http://61.155.212.122/hc.yinyuetai.com/uploads/videos/common/5B86014C1334A89EB08B30D386FAA9C1.flv?sc=1c7a66a8a8bf0612&br=783&rd=iOS"] WithLocation:path]; } }
【文件预览】:
DownLoad
----LO_DownLoad.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(17KB)
--------xcuserdata()
----LO_DownLoad()
--------main.m(327B)
--------AppDelegate.h(270B)
--------AppDelegate.m(2KB)
--------Base.lproj()
--------DownLoadTask.m(2KB)
--------DownLoadTask.h(848B)
--------ViewController.h(413B)
--------Images.xcassets()
--------Info.plist(1KB)
--------ViewController.m(1KB)
----.DS_Store(6KB)
----LO_DownLoadTests()
--------Info.plist(755B)
--------LO_DownLoadTests.m(864B)