Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2014
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. [celle.thumb setImageWithURLRequest:[NSURLRequest requestWithURL:MYIMGLINK]
  2. placeholderImage:[UIImage imageNamed:@"Placeholder.png"]
  3. success:^(NSURLRequest *request , NSHTTPURLResponse *response , UIImage *image ){
  4.  
  5. if (request) {
  6. //Fade animation
  7. [UIView transitionWithView:celle.thumb
  8. duration:0.8f
  9. options:UIViewAnimationOptionTransitionCrossDissolve
  10. animations:^{
  11. [celle.thumb setImage:image];
  12.  
  13.  
  14.  
  15. } completion:NULL];
  16.  
  17. }
  18.  
  19.  
  20. }
  21. failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error){
  22.  
  23. }
  24. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement