iOS: Fix/lock Camera View in Portrait Mode/Orientation
-
10-06-2021 - |
سؤال
I'd like to fix my Camera View in Portrait Mode but I found NO solution till now...
Do YOU have one? Would make my day .__.'
المحلول
You cannot explicitly restrict the UIImagePickerController to portrait mode, but you can customize the look of the camera's user interface, which may help you. This is the example code from Apple:
https://developer.apple.com/library/ios/#samplecode/PhotoPicker/Introduction/Intro.html
Another method of controlling the camera's look is mentioned in this question:
I don't know exactly what your goal is, but one of these methods should help.
لا تنتمي إلى StackOverflow