일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 |
30 |
- HTML
- iPhone
- css3
- javascript
- 풀스택
- xcode
- keyframes
- ipad
- hover
- 프론트엔드
- Animation
- react
- SWIFT
- 비전공자
- image
- button
- MAC
- 백엔드
- iOS 개발자
- 비전공 개발자
- 애니메이션
- effect
- 개발자
- 자바스크립트
- front-end
- IOS
- html5
- php
- jQuery
- CSS
- Today
- Total
목록UIImagePickerController (2)
비전공자 개발일기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/eqruXK/btr1lwZxrUk/C3t2j7yZiA8N3G9J7uFEsK/img.gif)
import UIKit class ViewController: UIViewController { @IBOutlet weak var imageView: UIImageView! let imagePicker = UIImagePickerController() var selectedImage = UIImage() override func viewDidLoad() { super.viewDidLoad() imagePicker.delegate = self imageView.backgroundColor = .brown } @IBAction func cameraBTN(_ sender: UIButton) { imagePicker.sourceType = .camera present(imagePicker, animated: t..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/Gom9D/btrWcLGRE2R/WGaYebBnPKdpt0GKdCEQnk/img.gif)
시연 영상 위의 기능을 추가하기에 앞서 추가해야할 설정 권한 설정! Privacy - Camera Usage Description 카메라 사용 권한 Privacy - Photo Library Additons Usage Description 사진첩 접근 및 사용 권한 extension 해당 화면의 뷰컨트롤러: UIImagePickerControllerDelegate, UINavigationControllerDelegate { func presentPhotoActionSheet() { actionSheet.addAction(UIAlertAction(title: "Cancel", style: .cancel)) actionSheet.addAction(UIAlertAction(title: "Take Photo",..