Skip to content

Commit

Permalink
Create task for the background download
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Halgravez committed Apr 4, 2017
1 parent ea5d452 commit 07d2dd0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ -(void)download:(id)sender {
}

-(void)downloadInBackground:(id)sender {
[self cleanupUI];

NSURLSessionDownloadTask *task = [self.backgroundDonwloadSession downloadTaskWithURL:self.charmanderURL];
[task resume];

}

Expand Down

0 comments on commit 07d2dd0

Please sign in to comment.