Skip to content

Illustrates a technique for rotating the subviews of a UIView which does not rotate.

Notifications You must be signed in to change notification settings

druzziel/AVCaptureRotation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AVCaptureRotation

Illustrates a technique for rotating the subviews of a UIView which does not rotate.

If you are using an AVCaptureVideoPreviewLayer in a scene, you may not want to rotate it. If that is the case, but you also want to have views in front of the AVCaptureVideoPreviewLayer that CAN respond to rotations (like buttons or labels), then you can do so by creating a notificaton observer for UIDeviceOrientationDidChangeNotification. When the @selector for your observer gets triggered, you can apply rotations to all of the subviews of the view containing the AVCaptureVideoPreviewLayer.

About

Illustrates a technique for rotating the subviews of a UIView which does not rotate.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published