일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- LightWeight Migration
- Swift
- NSManagedObject SubClass
- Persistent store Coordinator
- iOS Static Library
- Swift LinkedList
- CoreData Stack
- dateFormatter
- 다익스트라 이해
- CoreData Concurrency
- expensive operation
- codability
- 일급 객체
- Swift closure
- CoreData
- leetcode #01
- iOS Static Library 사용하는방법
- NSPredicates
- 2022 부스트캠프
- 1009번
- Swift 고차함수
- persistentStoreCoordinator
- 스위프트 클로저
- 트레일링 클로저
- Java
- CoreData Filter
- NSSortDescriptor
- Clean swift
- Raw value and Associated value
- Associated Value
- Today
- Total
목록Swift (13)
하루를살자
Collection Types Swift 는 collection 의 값들을 저장하는 3가지의 기본 collection type 을 가지고 있다. 1. Arrays --> Collection 의 값들이 순서 있게 저장됨. 2. Sets --> 유니크 한 collection 값들이 순서 없이 저장됨. 3. Dictionary --> Key-Value 로 되어있는 collection 들이 순서 없이 저장됨. - 위의 3가지 타입들은 Swift 에서 저장 할수 있는 값들의 의 타입과 key 에 대해서 민감하다. 이는, 잘못된 타입을 collection 에 넣는것을 방지해주고, 사용자가 항상 어떤 타입의 값들을 해당 collection 에서 받을지, 넣어줄지 확신 할수 있게 해준다. Mutability of Co..
Enumerations Enumeration cases can specify associated values of any type to be stored along with each different case value. You can use 'case' keyword to introduce new enumeration cases. Each enumeration definition defines a new type. var directionToHead = CompassPoint.west directionTohead = .east The type of directionTohead is already known, so its type can be dropped when setting its value. ==..
Usage - The Optional is used to declare a variable but don't want to set a default value - It is used when using nil to represent an unset state - when using a variable to reference data that can actually be nil Two ways to use Optionals 1. Implicitly unwrapped optional 2. Optional // Implicitly Unwrapped optionals // It can contain nil // Xcode doesn't alert the user // It doesn't need to be un..
Model = Structures and Classes that represent the data objects in the application. View = Represents the UI to the user and captures interaction. Uses the ViewModel to know what to show. ViewModel = Manages the state and data that your view portrays. Contains business logic and code to carry out functions of the application How to get updated with the change in data from the view? 1. The Observa..
Basic Flow of Application reference : https://www.youtube.com/watch?v=F2ojC6TNwws Xcode - Playground It provides a simple tool called "playground" which enables to practice Swift. It also has advantages on as following; REPL - Read, Eval, Print, Loop 가능 프로젝트 생성 불필요 코드 작성/변경 - 바로 결과 확인 가능 Swift Data-type String : "Hello" Int : 1,2, Double : 0.2, 1.2 Bool : ture, false var : mutable variable let :..