84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
Rt
想要在拍照时让取景器中心出现一个十字,在通过UIImagePickerController的cameraOverlayView属性添加十字的视图时,如何定位才能放到取景器的中心呢?很明显取景器视图中心位置和屏幕的中心位置并没有重合。而且UIImagePickerController的视图结构是私有的,没办法得到任何关于取景器视图范围的信息。
UIImagePickerController
cameraOverlayView
thx
走同样的路,发现不同的人生
I don’t have any specific practice myself, sorry. What the questioner means is that the center point cannot be obtained?
Since I didn’t write it myself, I tried to quote the article, hoping it can help the questioner.
The following article introduces:这个代码就可以实现拍照功能了,如果把注释掉的代码加上就可以添加overlayview,比如十字准星,条形码扫描框之类的
这个代码就可以实现拍照功能了,如果把注释掉的代码加上就可以添加overlayview,比如十字准星,条形码扫描框之类的
Reference: Implementation of UIImagePickerController obtaining photos and adding overlay method
Statement
Quote
Reference: Implementation of UIImagePickerController obtaining photos and adding overlay method