일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- ios
- UICollectionView
- ribs
- uitableview
- SWIFT
- Human interface guide
- Xcode
- tableView
- RxCocoa
- swiftUI
- 리펙토링
- Protocol
- combine
- HIG
- Refactoring
- Clean Code
- uiscrollview
- MVVM
- 스위프트
- map
- 리펙터링
- 애니메이션
- UITextView
- clean architecture
- Observable
- collectionview
- rxswift
- swift documentation
- 클린 코드
- 리팩토링
- Today
- Total
목록AVCaptureDevice (2)
김종권의 iOS 앱 개발 알아가기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/I5b1U/btrF6I0nxtC/6RSw5fCpiGsilVAhKB6Ui1/img.png)
카메라 사용 구현 아이디어 카메라 권한 요청 거부한 상태라면 setting화면으로 이동하는 alert 오픈 AVCaptureDevice.requestAccess(for: .video) { ... } 카메라를 여는 가장 단순한 방법인 UIimagePickerController를 present 사진을 찍었을 때 사진 찍은것을 확인할 수 있는 방법인, delegate를 사용 pickerController.delegate = self extension ViewController: UINavigationControllerDelegate, UIImgePickerControllerDelegate { func imagePickerController(_:didFinishPickingMediaWithInfo:) { .....
핵심 타입 AVCaptureSession AVCaptureDevice AVCaptureDeviceInput, AVCapturePhotoOutput AVCaptureVideoPreviewLayer AVCaptureSession 개념: 세션이란 입력에서 출력 장치로의 데이터 흐름을 제어하는데 사용 해상도 설정: captureSession.sessionPreset captureSession = AVCaptureSession() captureSession.sessionPreset = .photo // set resoultion AVCaptureDevice 개념: 말 그래로 "capture"하는 물리적인 device를 참조하는 데이터형 guard let backCamera = AVCaptureDevice.defa..