Need to simulate Camera of iphone simulator - MacRumors Forums
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 Apr 17, 2009, 02:33 AM   #1
ilx.mac
macrumors member
 
Join Date: Mar 2009
Need to simulate Camera of iphone simulator

I need to simulate the camera of iphone through code. I know that its possible. But I am not sure on how to perform that action. can some one help me on this?
ilx.mac is offline   0 Reply With Quote
Old Apr 17, 2009, 04:56 AM   #2
chbeer
macrumors member
 
Join Date: Sep 2008
Location: Berlin
I never heard that it's possible... so why are you that shure? where did you get that information from?
__________________
Learn vocabulary on-the-go? iVocabulary!

Follow iVocabulary on Twitter!
chbeer is offline   0 Reply With Quote
Old Apr 17, 2009, 05:31 AM   #3
mccannmarc
macrumors 6502
 
Join Date: Aug 2008
Location: Manchester, UK
Send a message via MSN to mccannmarc
It isn't possible, although I can't see why Apple couldn't have given the simulator the ability to use the iSight camera built into the majority of Macs to simulate the camera functionality
__________________
DudeWare site:- http://www.dude-ware.co.uk DudeWare forum:- http://www.forum.dude-ware.co.uk
mccannmarc is offline   0 Reply With Quote
Old Apr 17, 2009, 07:52 AM   #4
ilx.mac
Thread Starter
macrumors member
 
Join Date: Mar 2009
I came across some forums & they said its possible. But u cant view the action on the simulator. for the same it will work on iphone. So, is there a code sample to make it work?
ilx.mac is offline   0 Reply With Quote
Old Apr 17, 2009, 08:09 AM   #5
Jeremy1026
macrumors 68000
 
Join Date: Nov 2007
Can't be done, put it on your phone to test it.
__________________
1026 Development
Jeremy1026 is offline   0 Reply With Quote
Old Apr 17, 2009, 08:12 AM   #6
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by ilx.mac View Post
I came across some forums & they said its possible.
So why not ask them: we all seem pretty sure you can't do it in the simulator (just like sending email or SMS messages don't work in the simulator).
robbieduncan is offline   0 Reply With Quote
Old Apr 17, 2009, 08:16 AM   #7
ilx.mac
Thread Starter
macrumors member
 
Join Date: Mar 2009
I know you guys have pretty much experience than the others. So, now I believe that its not possible with simulator. Will it work with iphone? If yes, can some one provide me guidance? Please!
ilx.mac is offline   0 Reply With Quote
Old Apr 17, 2009, 08:19 AM   #8
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by ilx.mac View Post
I know you guys have pretty much experience than the others. So, now I believe that its not possible with simulator. Will it work with iphone? If yes, can some one provide me guidance? Please!
Will what work? Using the camera? Yes, you can use it using the normal API as covered in the developer documentation. I suggest you go read it....
robbieduncan is offline   0 Reply With Quote
Old Apr 17, 2009, 08:27 AM   #9
ilx.mac
Thread Starter
macrumors member
 
Join Date: Mar 2009
if possible can you please be specific on what i should look @. (ie., some class/ framework name & its methods) Please!
ilx.mac is offline   0 Reply With Quote
Old Apr 17, 2009, 08:45 AM   #10
Jeremy1026
macrumors 68000
 
Join Date: Nov 2007
Quote:
Originally Posted by ilx.mac View Post
if possible can you please be specific on what i should look @. (ie., some class/ framework name & its methods) Please!
UIImagePickerController
__________________
1026 Development
Jeremy1026 is offline   0 Reply With Quote
Old May 7, 2009, 02:21 AM   #11
ilx.mac
Thread Starter
macrumors member
 
Join Date: Mar 2009
Thanks for the inputs & it worked.

This is what i used:

UIImagePickerController *picker = [[[UIImagePickerController alloc] init] autorelease];
[picker setDelegate:self];
[picker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
[self.navigationController presentModalViewControllericker animated:YES];
ilx.mac 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
[Free][Game] Truck Simulator 3D - real simulator! MarusacAlexandr iPhone and iPod touch Apps 0 Jan 11, 2014 01:43 AM
Anyone else have huge iPhone simulator? HawaiiMacAddict iPhone/iPad Programming 12 Nov 4, 2013 07:28 PM
[Free Game] Bus Simulator 3D - real bus simulator driving ! MarusacAlexandr iPad Apps 0 Oct 7, 2013 02:29 AM
[Free Game] Bus Simulator 3D - real bus simulator driving ! MarusacAlexandr iPhone and iPod touch Apps 0 Oct 7, 2013 02:27 AM
iPhone simulator DShap5 iPhone 3 Mar 15, 2013 11:40 AM

Forum Jump

All times are GMT -5. The time now is 05:53 AM.

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

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