<p>It seems obvious that some people have been able to figure out how to access the iPhone camera through the SDK (Spore Origins, for example). How can this be done?</p>

[{'answer_id': 74255, 'author': 'wxs', 'author_id': 12981, 'author_profile': 'https://Stackoverflow.com/users/12981', 'pm_score': 7, 'selected': True, 'text': '<p>You need to use the <code>UIImagePickerController</code> class, basically:</p>\n\n<pre><code>UIImagePickerController *picker = [[UIImagePickerController alloc] init];\npicker.delegate = pickerDelegate\npicker.sourceType = UIImagePickerControllerSourceTypeCamera\n</code></pre>\n\n<p>The <code>pickerDelegate</code> object above needs to implement the following method:</p>\n\n<pre><code>- (void)imagePickerController:(UIImagePickerController *)picker\n           didFinishPickingMediaWithInfo:(NSDictionary *)info\n</code></pre>\n\n<p>The dictionary <code>info</code> will contain entries for the original, and the edited image, keyed with <code>UIImagePickerControllerOriginalImage</code> and <code>UIImagePickerControllerEditedImage</code> respectively. (see <a href="https://developer.apple.com/documentation/uikit/uiimagepickercontrollerdelegate" rel="nofollow noreferrer">https://developer.apple.com/documentation/uikit/uiimagepickercontrollerdelegate</a> and <a href="https://developer.apple.com/documentation/uikit/uiimagepickercontrollerinfokey" rel="nofollow noreferrer">https://developer.apple.com/documentation/uikit/uiimagepickercontrollerinfokey</a> for more details)</p>\n'}, {'answer_id': 3211440, 'author': 'binshi', 'author_id': 356250, 'author_profile': 'https://Stackoverflow.com/users/356250', 'pm_score': 3, 'selected': False, 'text': '<p>Hmmmm.....Ever tried using an OverlayView? With this the camera might look customized but in actuality its just a view above it.</p>\n\n<p>If the private API\'s are directly accessed it might result in the app being rejected by Apple.\nSee if the below link helps.</p>\n\n<p><a href="http://www.articlesbase.com/programming-articles/custom-camera-applications-development-using-iphone-sdk-766832.html" rel="noreferrer">link text</a></p>\n'}]
['https://Stackoverflow.com/questions/74113', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5338/']