How do I access the iPhone camera API without the camera interface? - iphone

How can I take a picture in my iPhone app without going through the camera interface?
I've read things about CameraController. Is that what I should look into, or is there an easier way to just snap a picture with code?

You cant access the camera without the iphone API, however what they have allowed is for you to provide your custom view to be used on top of the camera interface, what you have to do is set the cameraOverlayView property of a UIImagePIckerController, here is the reference, as the solution posted in the comment points out, you might be able to access the camera, but through private frameworks which could hurt your chances of approval to the appstore

Related

How to record screen to video on iPhone with openGL (view preview layer) and UIkit elements?

I have searched everywhere and tried mixing and matching different bits of code but I haven't found anything that works or anyone with the same question.
Basically I want to be able to create video demos of iPhone apps that include standard UIKit elements and also the image coming from the camera (video preview layer). I don't want to use airPlay or iOS simulator to project onto the desktop then capture because I want to be able to make videos outside in public. I have successfully been able to video capture the screen with this code but with the video preview layer being blank. I read that its because its using openGL and what I'm capturing is from the CPU, not the GPU. I have successfully used GPUImage from Brad Larson to capture the video preview layer but it doesn't capture the rest of the UIView. I have seen code that combines both and converts to an image but I'm not sure if that would be too slow for realtime video capture. Can someone point me in the right direction?
It might not be the cleanest solution, but it will work nonetheless: did you consider jailbreaking? I hope Apple does sue me for this one but if you really want to record your screen then simply install a screen recorder. Enough options can be found: http://www.google.be/search?q=iphone+jailbreak+record+screen
And if you don't like it: recover your phone for a previous backup.
(for the record: I'm against jailbreaking and posting this from a productivity point of view)

Using xcode to access rear camera, iphone iOS5

I'm sorry if this is already answered...
All I need is how to fire up the rear facing camera and display it in an image view...no taking pictures, no accessing the photo library, just turning on the camera...simple.
I believe AVCapture is the thing to use, but anything I look into goes way deep than I need and I'm just not that smart. Any help is appreciated.
THANKS!
The AVCam sample from Apple is the best place to start. Be warned that the seemingly simple task of displaying a live video preview from the camera is non-trivial.

iPhone Screen Capturing Question

I'm writing an iPhone App that allows people to share images that may be copyrighted(not illegally). The issue I am having is that I'm looking for a way to work around the screen capturing. Is there any possible way you can disable screen capturing or possibly distort the image in some way so capturing will be useless, maybe even block the images when a screen capture is trying to be taken?
That is impossible because it is embedded in iOS itself. Maybe some private APIs, but then there is no app store for your app.
Watermarking the images may be a good half-way solution.
iOS screen capture does not support capturing everything. It does not capture OpenGL or YouTube for example. So if you can manage to implement showing images using OpenGL instead of the simple way using UIKit they would not show up on a screen shot.

What is the iPhone API or Class that does picture scrolling with the cool reflection effect?

For example, in CNN's iPhone app, if you rotate the phone into landscape mode, it shows all the stories as pictures that you can scroll with your finger. It looks really polished with even a "reflection" effect. I've seen another app also do this, leading me to believe that it is a standard iPhone SDK API.
Here is a link to a screenshot from the CNN app so you can see what I'm talking about:
http://www.itnewsafrica.com/?p=8422
Anyone know what Class this is?
Thanks!
Try this: Open source CoverFlow library for iPhone
Also do a google search for Coverflow. I think that might do what you want or something close to it.

custom camera preview on the iPhone?

I have two of my apps rejected by Apple and sitting on the "shelves of approval" for 2 months, because both apps were using UIImagePickerController and I dared to add a rectangle on top of the UIImagePickerController, using something as
[picker.view addSubView:rectangle];
On the other hand, applications like CameraZoom and others, ditch the UIImagePickerController regular appearance completely and has its own interface, with custom graphics and sliders on top of the camera preview and even with the ability to zoom the preview image in real-time.
My question is: how can one do that and not be crucified by Apple?
thanks for any insight!
As far as I know, it's been hit and miss. Some apps get through, some don't, and it's really quite annoying (as is app approval in general).
In SDK 3.1, there is a new Camera Overlay concept, where you can overlay your own view on top of the camera view. You can find more documentation on the iPhone Developer website (since it is 3.1, it is under NDA).