I\'m trying to perform the task of taking a picture, but triggered by code instead of relying on the touching of the camera button in UIImagePickerController. Can this be do
You should look into the AVFoundation framework -- that makes it pretty easy to do.
As answered here, check out Apple's AVCam sample. It shows how to get both still images and video from the camera.