开发者

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

How to open a camera by clicking on t开发者_Go百科he table view cell in an iPhone application?


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜