본문 바로가기

swift86

[iOS] DispatchGroup [iOS - swift] Dispatch Group * Dispatch Queue 개념 먼저 확인: ios-development.tistory.com/138 GCD의 개념 GCD(Grand Central Dispatch)는 iOS에서 thread pool(생성된 Thread들)을 관리하는 개념 Dispatch Queue: Thread safe하게 Thread.. ios-development.tistory.com Apple Developer Documentation developer.apple.com DispatchGroup 같은 DispatchQueue 혹은 다른 큐에 있는 비동기적으로 실행된 여러 작업들을 하나의 그룹으로 만들어서 그룹에 있는 모든 작업들이 끝났을 때 동기적으로 특정 작업을 실행할 수 .. 2022. 7. 5.
[iOS] application(_:open:options:) 의 return 값은 어디서 사용되는가? Apple Developer Documentation developer.apple.com application(_:open:options:) delegate에게 URL로 이루어진 리소스를 열 것을 요청하고, 런치 옵션 dictionary를 제공한다. URL을 통해 application으로 진입할 때 호출된다. 만약 application(_:willFinishLaunchingWithOptions:) 와 application(_:didFinishLaunchingWithOptions:) 메서드 둘 다 false를 반환한다면 호출되지 않는다. 즉 하나라도 true를 반환한다면 호출된다. 만약 앱이 background 혹은 suspended 상태일 때 URL이 도착한다면, 시스템은 앱을 foreground로 옮.. 2022. 6. 25.
[Swift] 메모리 구조 [Swift] Class와 Struct의 차이점? 안녕하세요 Pingu입니다.🐧 오늘은 iOS 개발에 쓰이는 Swift 언어에서 Class, Struct의 차이점이라는 주제를 가지고 글을 써보려고 합니다. iOS 개발자로 면접을 준비하다 보면 Class, Struct의 차이점이라 icksw.tistory.com Using Structs over Classes in Swift Isn’t as Safe as You Think It is Good discipline should be more of a concern than using a value type over a reference type medium.com iOS) 메모리 구조 (Code, Data, Stack, Heap) 안녕하세여~~ 소들입니다 :.. 2022. 6. 6.
[Swift] Class vs Struct [Swift] Class와 Struct의 차이점? 안녕하세요 Pingu입니다.🐧 오늘은 iOS 개발에 쓰이는 Swift 언어에서 Class, Struct의 차이점이라는 주제를 가지고 글을 써보려고 합니다. iOS 개발자로 면접을 준비하다 보면 Class, Struct의 차이점이라 icksw.tistory.com Class vs Struct class struct 타입 참조(Reference) 값(Value) ARC에서 메모리 관리 O X 변수 할당 시 메모리 주소만 복사 (한 변수의 값을 변경 시키면 모든 변수가 변경) 새로운 변수에 할당 시 새로운 구조체 할당 (한 변수의 값을 변경시켜도 다른 변수에 영향없음) 메모리 영역 Heap Stack thread-safe X O 상속 사용 O X deinit .. 2022. 6. 2.