AVCaptureVideoPreviewLayer smooth orientation rotation

后端 未结 9 1019
Happy的楠姐
Happy的楠姐 2021-02-02 16:45

I\'m trying to disable any discernable orientation rotation to an AVCaptureVideoPreviewLayer while still maintaining rotation for any subviews. AVCaptureVideoPreviewLayer does h

9条回答
  •  野性不改
    2021-02-02 16:48

    Since AVCaptureVideoPreviewLayer is a CALayer, then any changes will be animated, http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimatingLayers.html. To stop the animation just [previewLayer removeAllAnimations].

提交回复
热议问题