iOS?????????????ASI?????????????
???????????? ???????[ 2015/7/3 13:59:00 ] ??????????????? ????
????????????Щ????????????????????
?????code4app????????????????????????????????????????DACircularProgressView??????
??????????????????????????????
?????????????
1 #import "YYViewController.h"
2 #import "ASIHTTPRequest.h"
3 #import "DACircularProgressView.h"
4
5 @interface YYViewController ()<ASIProgressDelegate>
6
7 @property (weak?? nonatomic) IBOutlet DACircularProgressView *circularView;
8 @property (weak?? nonatomic) IBOutlet UIProgressView *progress;
9 @end
10
11 @implementation YYViewController
12
13 - (void)viewDidLoad
14 {
15 [super viewDidLoad];
16
17 //??????????Щ????
18 self.circularView.trackTintColor=[UIColor lightGrayColor];
19 self.circularView.progressTintColor=[UIColor yellowColor];
20 }
21
22 -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
23 {
24 //???????????????
25 [self download];
26 }
27
28 #pragma mark-???????
29 -(void)download
30 {
31 //1.???????????
32 NSURL *url=[NSURL URLWithString:@"http://127.0.0.1:8080/MJServer/resources/video.zip"];
33 ASIHTTPRequest *request=[ASIHTTPRequest requestWithURL:url];
34
35 //2.????????????????·??
36 NSString *cachepath=[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory?? NSUserDomainMask?? YES)lastObject];
37 NSString *filename=[cachepath stringByAppendingPathComponent:@"video.zip"];
38 request.downloadDestinationPath=filename;
39 NSLog(@"%@"??filename);
40
41 //3.???????????????
42 request.downloadProgressDelegate=self.circularView;
43
44 //4.????????????????
45 [request startAsynchronous];
46
47 //5.?????????????
48 request.allowResumeForFileDownloads=YES;
49
50 //5.??????????
51 [request setCompletionBlock:^{
52 NSLog(@"?????????????");
53 }];
54 }
55
56 #pragma mark-??????????????????
57 @end
???????Ч????
????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???ios???????????????Щ????IOS???á?????豸?????TestAgent??????????????????MR????ν???IOS?豸???????????????????????MobileRunner iOS???????iOS???????iOS???????????? ???????????iOS??JSON?????????????iOS UnitTest?????????iOS?????????????6С???BugAppium iOS 10 ????????iOS???????iOS UI???????????iOS APP????????????????????????????????ν???iOS????????????????iOS?湫?????????????????????????????????????iOS???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????