iOS/Swift
Dispatch (Framework) 시스템에서 관리하는 Dispatch 대기열에 작업을 제출하여 Multi Core 하드웨어에서 코드를 동시에 실행 GCD(Grand Central Dispatch)라고 알려진 Dispatch에서는 macOS, iOS, watchOS 및 tvOS의 멀티코어 하드웨어에서 동시 코드 실행 지원에 대한 체계적이고 포괄적인 개선사항을 제공하는 언어 기능 Runtime 라이브러리 및 시스템 개선사항이 포함되어 있음 Dispatch | Apple Developer Documentation Execute code concurrently on multicore hardware by submitting work to dispatch queues managed by the system. ..
RelativeDateTimeFormatter RelativeDateTimeFormatter | Apple Developer Documentation A formatter that creates locale-aware string representations of a relative date or time. developer.apple.com extension Date{ var relativeTime_abberiavted: String{ let formatter = RelativeDateTimeFormatter() formatter.unitsStyle = .full // 지역 설정하면 그 나라 언어로 상대시간을 표시 formatter.locale = Locale(identifier: "ko_KR") re..
Array (Struct) 순서가 지정된 무작위 액세스 collection Array | Apple Developer Documentation An ordered, random-access collection. developer.apple.com 배열은 앱에서 가장 많이 사용되는 데이터 타입 중 하나 앱의 데이터를 구성할 때 배열을 사용 특히 배열을 사용하여 단일 유형의 element, 즉 배열의 element 유형을 보유 배열은 Int형부터 String, Class까지 모든 종류의 element를 저장 가능 예전 포스팅 [Swift] 배열 참조 : Swift 스위프트 프로그래밍 3판 Swift 5, 저자 야곰 (한빛미디어) , The Swift Programming Language Swift 5.6 E..
UISceneDelegate Scene 내에서 발생하는 수명 주기(Life Cycle) 이벤트에 응답하는 데 사용하는 핵심 방법 UISceneDelegate | Apple Developer Documentation The core methods you use to respond to life-cycle events occurring within a scene. developer.apple.com Connecting and disconnecting the scene scene(_:willConnectTo:options:) : Delegate에 앱의 Scene을 추가하는 것을 알림 func scene(_ scene: UIScene, willConnectTo session: UISceneSession, opt..
Frame과 bounds에 대해 알아보기 전 CGPoint, CGSize, CGRect에 대해 알아야 한다. CGPoint : 2차원 좌표계의 점을 포함하는 Struct CGPoint | Apple Developer Documentation A structure that contains a point in a two-dimensional coordinate system. developer.apple.com CGSize : width와 height의 값 CGSize | Apple Developer Documentation A structure that contains width and height values. developer.apple.com CGRect : 사각형(Rectangle)의 위치와 크기를 ..
BackgroundTasks Background Tasks | Apple Developer Documentation Request the system to launch your app in the background to run tasks. developer.apple.com BackgroundTasks Framework를 사용하여 앱 컨텐츠를 최신상태로 유지하고 앱이 백그라운드에 있는 동안 완료하는데 몇 분이 걸리는 작업을 실행하세요. 더 긴 작업에는 선택적으로 전원이 공급되는 장치와 네트워크 연결이 필요할 수 있습니다.