參考資料:
https://www.youtube.com/watch?v=Xv1FfqVy-KM
https://www.objc.io/issues/21-camera-and-photos/camera-capture-on-ios/
http://jamesonquave.com/blog/taking-control-of-the-iphone-camera-in-ios-8-with-swift-part-1/
http://stackoverflow.com/questions/10544887/rotating-a-cgimage
http://stackoverflow.com/questions/158914/cropping-an-uiimage
http://stackoverflow.com/questions/603907/uiimage-resize-then-crop
https://akira-watson.com/iphone/avcapturevideodataoutput.html
http://stackoverflow.com/questions/389342/how-to-get-the-size-of-a-scaled-uiimage-in-uiimageview (實用的 AVMakeRectWithAspectRatioInsideRect,可取得Fit後的frame)
全站熱搜
留言列表