ios - SDWebImage into NSArray -



ios - SDWebImage into NSArray -

how can add together 3 imageviews using sdwebimage nsarray?

i have images in form:

[self.imageview1 setimagewithurl:[nsurl urlwithstring:[self.objc objectforkey:@"image1"]] placeholderimage:[uiimage imagenamed:@"placeholder.png"]]; [self.imageview2 setimagewithurl:[nsurl urlwithstring:[self.objc objectforkey:@"image2"]] placeholderimage:[uiimage imagenamed:@"placeholder.png"]]; [self.imageview3 setimagewithurl:[nsurl urlwithstring:[self.objc objectforkey:@"image3"]] placeholderimage:[uiimage imagenamed:@"placeholder.png"]];

sdwebimage has method completion block. utilize method

[self.imageview setimagewithurl:[nsurl urlwithstring:[self.objc objectforkey:@"image1"]] placeholderimage:[uiimage imagenamed:@"placeholder.png"] completed:^(uiimage *image, nserror *error, sdimagecachetype cachetype) { //completion code here ... [self.animationarray addobject:image]; // animationarray array property }];

add image animationarray completion block

ios nsarray sdwebimage

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -