I'm using this function for downloading some images in looping for(int i=0;i<images.count;i++)
.
- (void)setImageWithURLRequest:(NSURLRequest *)urlRequest
placeholderImage:(UIImage *)placeholderImage
success:(void (^)(NSURLRequest *request, NSHTTPURLResponse * __nullable response, UIImage *image))success
failure:(void (^)(NSURLRequest *request, NSHTTPURLResponse * __nullable response, NSError *error))failure;
When images still downloading, I touch back from navigation, app get crash (Crash due to signal: SIGTRAP() at 193e73fb0).
What should I do? So even downloading is not completed yet, I tap back [self.navigationController popViewControllerAnimated:YES];
, app will not crash.
Or maybe there are alternative way to do this?
Thanks before.