扫码关注官方订阅号
有没有谁能给我一个列子,是用UIImagePickerController调用camera,然后通过cameraOverlayView自定义一个横屏的拍照模式的例子。而且在横屏上,要能自己添加一些按钮控件等。我找了半天没有找到。谢谢!
闭关修行中......
UIImagePickerController *iPicker = [[UIImagePickerController alloc] init]; iPicker.showsCameraControls = NO; UIView *parentView=[[[UIView alloc] initWithFrame:CGRectMake(0,0,[[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height)] autorelease]; //在parentView里面自定义按钮 iPicker.cameraOverlayView = parentView;
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
闭关修行中......