iOS/Swift
-
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..
[Swift] 공식문서 파헤치기 (Array, Set, Dictionary)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..
2023.11.11 -
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..
[Swift] UISceneDelegateUISceneDelegate 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..
2023.11.09 -
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)의 위치와 크기를 ..
[Swift] frame vs boundsFrame과 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)의 위치와 크기를 ..
2023.10.28 -
BackgroundTasks Background Tasks | Apple Developer Documentation Request the system to launch your app in the background to run tasks. developer.apple.com BackgroundTasks Framework를 사용하여 앱 컨텐츠를 최신상태로 유지하고 앱이 백그라운드에 있는 동안 완료하는데 몇 분이 걸리는 작업을 실행하세요. 더 긴 작업에는 선택적으로 전원이 공급되는 장치와 네트워크 연결이 필요할 수 있습니다.
[Swift] BackgroundTasksBackgroundTasks Background Tasks | Apple Developer Documentation Request the system to launch your app in the background to run tasks. developer.apple.com BackgroundTasks Framework를 사용하여 앱 컨텐츠를 최신상태로 유지하고 앱이 백그라운드에 있는 동안 완료하는데 몇 분이 걸리는 작업을 실행하세요. 더 긴 작업에는 선택적으로 전원이 공급되는 장치와 네트워크 연결이 필요할 수 있습니다.
2023.09.03 -
회사에서 API를 만들 때 Dynamic Library?, Static Library? 개념에 대하여 이해하기 위해 포스팅해 보았다. Dynamic과 Static의 차이는 여기서 확인할 수 있다. Dynamic Library 처음 Xcode에서 Framework를 선택하면 Dynamic Library로 생성 된다. 아래와 같은 간단한 클래스를 만들었다. open class DynamicClass{ public init(){} open func test1(_ a: Int, _ b: Int) -> Int{ return a + b } } init 사용하지 않으면 사용하려는 프로젝트에서 initializer is inaccessible due to 'internal' protection level 위와 같은 에..
[Swift] Dynamic Library vs Static Library회사에서 API를 만들 때 Dynamic Library?, Static Library? 개념에 대하여 이해하기 위해 포스팅해 보았다. Dynamic과 Static의 차이는 여기서 확인할 수 있다. Dynamic Library 처음 Xcode에서 Framework를 선택하면 Dynamic Library로 생성 된다. 아래와 같은 간단한 클래스를 만들었다. open class DynamicClass{ public init(){} open func test1(_ a: Int, _ b: Int) -> Int{ return a + b } } init 사용하지 않으면 사용하려는 프로젝트에서 initializer is inaccessible due to 'internal' protection level 위와 같은 에..
2023.08.21 -
Core Data Core Data | Apple Developer Documentation Persist or cache data on a single device, or sync data to multiple devices with CloudKit. developer.apple.com 단일 장치에서 데이터를 유지 또는 캐시 하거나 CloudKit을 사용하여 여러 장치에 동기화하는 Framework Core Data를 사용하여 오프라인에서 사용하기 위해 Application의 영구정인 데이터를 저장하고, 임시 데이터를 캐시 하고, 단일 기기에서는 앱의 실행 취소 기능을 추가합니다. 단일 iCloud 계정의 여러 장치에서 데이터를 동기화하기 위해 Core Data는 Schema를 CloudKit Cont..
[Swift] Core DataCore Data Core Data | Apple Developer Documentation Persist or cache data on a single device, or sync data to multiple devices with CloudKit. developer.apple.com 단일 장치에서 데이터를 유지 또는 캐시 하거나 CloudKit을 사용하여 여러 장치에 동기화하는 Framework Core Data를 사용하여 오프라인에서 사용하기 위해 Application의 영구정인 데이터를 저장하고, 임시 데이터를 캐시 하고, 단일 기기에서는 앱의 실행 취소 기능을 추가합니다. 단일 iCloud 계정의 여러 장치에서 데이터를 동기화하기 위해 Core Data는 Schema를 CloudKit Cont..
2023.08.21