Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 24, 2008, 10:02 AM   #1
sspbond007
macrumors member
 
Join Date: Aug 2008
UIImagePickerController not working with 2.2 SDK

Hi All,

i've updated to 2.2 SDK + iPhone OS. Now when I am adding photo to my application from album or using camera, it gives following error message

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Pushing a navigation controller is not supported'

2008-11-24 16:43:22.461 IphoneSurveyTool89:20b Stack: (

808221155,

806100816,
here is the code I'm using..

UIImagePickerController *imagePickerController = [UIImagePickerController alloc] init ;

if(UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera){
imagePickerController.delegate = self;
imagePickerController setSourceType:UIImagePickerControllerSourceTypeCamera;
homeViewController.navigationController pushViewController:imagePickerController animated:YES;
homeViewController.navigationController.navigationBarHidden = YES;
}
else{
imagePickerController.delegate = self;
imagePickerController setSourceType:UIImagePickerControllerSourceTypePhotoLibrary;
homeViewController.navigationController pushViewController:imagePickerController animated:YES;
homeViewController.navigationController.navigationBarHidden = YES;
}
imagePickerController release;

The code was working perfectly fine with 2.1 SDK and iPhone OS.
sspbond007 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Resolved: UIImagePickerController editing view circle overlay - resolved troop231 iPhone/iPad Programming 4 May 14, 2014 06:55 AM
UIImagePickerController DennisBlah iPhone/iPad Programming 0 Mar 21, 2014 10:05 AM
Firewire SDK rdsii64 Digital Video 8 Jul 23, 2013 12:43 PM
There's an Aperture 3.4 SDK mozumder Digital Photography 1 Jul 1, 2013 08:31 AM
X11 sdk joepistritto Mac Programming 4 Dec 4, 2012 05:10 AM

Forum Jump

All times are GMT -5. The time now is 07:20 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC