My application is composed of a toolbar and an AVCaptureVideoPreviewLayer in a background UIView. I\'d like to see that toolbar rotate regarding the device orientation, so in my
Try this:
myVideoCaptureLayer.orientationSupported = NO;