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 07-04-2009, 12:45 AM   #35 (permalink)
aryaxt
Registered Member
 
Join Date: Dec 2008
Location: Oceanside, CA
Posts: 570
Default

Do you see a problem with this code?
I call this in a uiviewcontroller, and as soon as i call it the screen goes all blnak and white. The code is in uiimakepickercontroller documents, so i don't see why it shouldn't work

-(BOOL)startCameraPickerFromViewControllerUIViewC ontroller*)controller usingDelegateid<UIImagePickerControllerDelegate> )delegateObject
{
if ( (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourc eTypeCamera])
|| (delegateObject == nil) || (controller == nil))
return NO;

UIImagePickerController* picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
picker.delegate = self;
picker.allowsImageEditing = YES;

// Picker is displayed asynchronously.
[controller presentModalViewControllericker animated:YES];
return YES;
}
aryaxt is offline   Reply With Quote
 

» Advertisements
» Online Users: 267
23 members and 244 guests
ADY, aikhan, AppAnnex, astalavista, chemistry, fkmtc, HemiMG, her-ur, ilmman, leahov, MarkC, marto1914, mer10, nicko, padsoftware, pavanindira, Raffaello, sneaky, syver, tathaastu, timle8n1, touchcream, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,219
Posts: 380,710
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 09:32 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.