본문 바로가기 메뉴 바로가기

ZeddiOS

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

ZeddiOS

검색하기 폼
  • 전체 보기 (841)
    • iOS (278)
    • Swift (126)
      • Concurrency (9)
    • SwiftUI (26)
    • Combine (17)
    • watchOS (2)
    • iPadOS (2)
    • Xcode (3)
      • Xcode Cloud (2)
    • Flutter (12)
    • 공부 (205)
    • 피아노 (39)
    • 요리 (2)
    • 시 (25)
    • 일상 (91)
  • 방명록

isSourceTypeAvailable (1)
[TIL] UIImagePickerController.isSourceTypeAvailable

UIImagePickerController를 쓸 일도 없고.. 안쓴지 너무 오래되어서 기억도 잘 안나긴 하는데 Simulator는 카메라가 없으니까 Simulator에서 isSourceTypeAvailable(.camera)는 false야! < 그냥 내 머리가 이렇게 알고있었음;; 어쩌다가 회사 프로젝트에서 관련해서 볼 일이 생겼는데, 이것저것 실험해보다가 UIImagePickerController.isSourceTypeAvailable(.camera) 위 코드를 Simulator에서 실행했더니 true가 나오는 것이다!! (당연히 false가 나올거라고 생각했음) 우선 isSourceTypeAvailable 공식문서를 살펴보기로 했다. # isSourceTypeAvailable 정의 : 디바이스가 지정..

공부 2023. 10. 6. 17:01
이전 1 다음
이전 다음
TAG
  • SwiftUI
  • swift 공부
  • swift sort
  • np-hard
  • FLUTTER
  • ios 13
  • swift array
  • Swift
  • 피아노
  • np-complete
  • actor
  • IOS
  • iOS delegate
  • 스위프트 문법
  • Git
  • 제이슨 파싱
  • github
  • WidgetKit
  • swift tutorial
  • Combine
  • UIBezierPath
  • WKWebView
  • Accessibility
  • swift3
  • Xcode
  • 스위프트
  • 회고
  • swift delegate
  • WWDC
  • fastlane
more
글 보관함
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory

티스토리툴바