Posted By

pmark on 11/05/09


Tagged

iphone libseabubble hibubble seanote


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

bobbym245
cnathan


Set bubble view's background with photo from album


 / Published in: Objective C
 

  1. - (IBAction)showImagePicker {
  2. // display an imagepicker
  3. UIImagePickerController *picker = [[UIImagePickerController alloc] init];
  4. picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
  5. picker.delegate = self;
  6. [self presentModalViewController:picker animated:YES];
  7. }
  8.  
  9. - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
  10. [picker dismissModalViewControllerAnimated:YES];
  11. [picker release];
  12.  
  13. // set image as background
  14. UIImage *pickedImage = [info objectForKey:UIImagePickerControllerOriginalImage];
  15. self.bubbleController.bubblesView.underlay.image = pickedImage;
  16. self.bubbleController.bubblesView.underlay.alpha = 1.0f;
  17. }

Report this snippet  

You need to login to post a comment.