hi all,
i am new to iPhone programming
i want to capture a photo from iphone programmatically. I have no idea that how can do this task
can anybody provide me a useful link or sample application?
You can't do that. You can only open the image picker setting the sourceType to UIImagePickerControllerSourceTypeCamera. This will show the standard interface to the user with a button to take a picture. You can retrieve that via the delegate.
If you can't work it out from that (you should be able to, this is simple stuff) then search on the developer portal and you should find some sample code (I'm not going to search for you).
There might be a simpler way to do this, but I know that you could capture the current context to a bitmap with Core Graphics, save that bitmap to an NSMutableData object, then just write it to disk.