| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- html5
- 백엔드
- 개발자
- front-end
- 자바스크립트
- ipad
- 프론트엔드
- css3
- iPhone
- 비전공 개발자
- Animation
- 비전공자
- 애니메이션
- SWIFT
- xcode
- image
- button
- hover
- 풀스택
- effect
- php
- javascript
- CSS
- IOS
- react
- iOS 개발자
- HTML
- keyframes
- MAC
- 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",..