Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. LOG:
  2. 2010-11-19 14:58:57.073 LikeMe[5126:207] WTF: <UIImage: 0x5e08540>
  3. 2010-11-19 14:58:57.077 LikeMe[5126:207] WTF2 (null)
  4.  
  5. Code:
  6. -(void)finishedSnappingImage:(UIImage *)img;
  7. {
  8.     NSLog(@"Finished snapping image: %@", img);
  9.     self.snappedImage = img;
  10.        
  11.     UIImage* buttonImage = [img resizedImage:fAddPhotoButton.bounds.size interpolationQuality:1];  
  12.    
  13.     NSLog(@"WTF: %@", buttonImage);
  14.  
  15.     [fAddPhotoButton setImage:buttonImage forState:UIControlStateNormal];  
  16.     NSLog(@"WTF2 %@", [fAddPhotoButton imageForState:UIControlStateNormal]);
  17.     //[fAddPhotoButton setBackgroundImage:buttonImage forState:UIControlStateNormal];  
  18.     [fAddPhotoButton setNeedsDisplay];
  19.    
  20.     //NSLog(@"PHotobutton image: %@", fAddPhotoButton.imageView.image);
  21.     [fAddPhotoButton removeTarget:self action:@selector(AddPhotoButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
  22.     [fAddPhotoButton addTarget:self action:@selector(removedSnappedImage:) forControlEvents:UIControlEventTouchUpInside];
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement