Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-03-2010, 03:01 AM   #23 (permalink)
Bindu
Registered Member
 
Join Date: Apr 2010
Posts: 2
Default Problem with use of Image pciking with UIImagePickerControl

Hello Can anyone help me ?

I am picking an image with a UIImagePickerControl with the code

UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;

if((UIButton *) sender == choosePhoto) {
picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;


}
else {
picker.sourceType = UIImagePickerControllerSourceTypeCamera;

}


I need to pas this image data to next view

i got the code for taking image data representation

UIImage *img = [UIImage imageNamed:@"some.png"];

NSData *dataObj = UIImageJPEGRepresentation(img, 1.0);


how can I get the image representation of same image that i am taking with UIImagePickerControl

Can u pls send me the code to use that image ?
Bindu is offline   Reply With Quote
 

» Advertisements
» Online Users: 302
20 members and 282 guests
ADY, apatsufas, dacapo, HemiMG, ilmman, iosdevjtp, leahov, MarkC, marto1914, masc2279, morands, PsychoChris, sly24, sneaky, Sunny46, tgjorgoski, thh022, Thrillhouse1919, timle8n1, vogueestylee
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,222
Posts: 380,718
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:04 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.