navjot
navjot

Reputation: 29

Open a camera by clicking on the table view cell in iphone app

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

Upvotes: 2

Views: 524

Answers (2)

Robert Conn
Robert Conn

Reputation: 877

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.

Upvotes: 1

Tom Irving
Tom Irving

Reputation: 10069

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

Upvotes: 0

Related Questions