views:

93

answers:

2

How to open a camera by clicking on the table view cell in an iPhone application?

A: 

Take a look at the UITableView delegate methods and the UIImagePickerController in the documentation.

Tom Irving
+1  A: 

Use the didSelectRowAtIndexPath method in your table view delegate class. Instantiate a UIImagePickerController to show the camera, or photo selection dialog.

Make sure you call deselectRowAtIndexPath during the method call to deselect the row properly and comply with the UI guidelines.

Robert Conn