| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
- jQuery
- ipad
- 프론트엔드
- css3
- SWIFT
- xcode
- image
- iOS 개발자
- button
- 개발자
- 애니메이션
- 비전공자
- php
- IOS
- 백엔드
- CSS
- html5
- react
- 자바스크립트
- HTML
- iPhone
- javascript
- 풀스택
- keyframes
- Animation
- 비전공 개발자
- front-end
- effect
- MAC
- hover
- Today
- Total
목록UIImagePickerController (2)
비전공자 개발일기
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..
시연 영상 위의 기능을 추가하기에 앞서 추가해야할 설정 권한 설정! 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",..