Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LOG:
- 2010-11-19 14:58:57.073 LikeMe[5126:207] WTF: <UIImage: 0x5e08540>
- 2010-11-19 14:58:57.077 LikeMe[5126:207] WTF2 (null)
- Code:
- -(void)finishedSnappingImage:(UIImage *)img;
- {
- NSLog(@"Finished snapping image: %@", img);
- self.snappedImage = img;
- UIImage* buttonImage = [img resizedImage:fAddPhotoButton.bounds.size interpolationQuality:1];
- NSLog(@"WTF: %@", buttonImage);
- [fAddPhotoButton setImage:buttonImage forState:UIControlStateNormal];
- NSLog(@"WTF2 %@", [fAddPhotoButton imageForState:UIControlStateNormal]);
- //[fAddPhotoButton setBackgroundImage:buttonImage forState:UIControlStateNormal];
- [fAddPhotoButton setNeedsDisplay];
- //NSLog(@"PHotobutton image: %@", fAddPhotoButton.imageView.image);
- [fAddPhotoButton removeTarget:self action:@selector(AddPhotoButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
- [fAddPhotoButton addTarget:self action:@selector(removedSnappedImage:) forControlEvents:UIControlEventTouchUpInside];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement