开发者

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

开发者 https://www.devze.com 2022-12-22 15:16 出处:网络
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 UIImagePickerContr

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

精彩评论

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

关注公众号