Category: Swift
-
Grand Central Dispatch (Part 2)
Learn Grand Central Dispatch
-
Grand Central Dispatch (Part 1)
Getting started with GCD
-
Swift Generics (Part 2)
-
Swift Generics (Part 1)
-
iOS — Device orientations
Mình xin chia sẻ một vài lưu ý khi develope application support full orientations : UIInterfaceOrientation.portraitUpsideDown không support cho iPhone X Family (có tai thỏ) -> Link refer : https://developer.apple.com/documentation/uikit/uiviewcontroller/1621435-supportedinterfaceorientations Default orientation support cho iPad là UIInterfaceOrientationMask.all (tất cả các hướng), còn cho iPhone là UIInterfaceOrientationMask.allButUpsideDown (không hỗ trợ upside down) Nếu trong app sử […]
-
Add placeholder for UITextView (phần 2)
-
Add placeholder for UITextView (phần 1)
-
Swift—Design patterns: Multicast Delegate
Ứng dụng của multicase delegate, lúc nào thì dùng? Dùng multicast delegate khi mà bạn muốn xây dựng một mô hình delegate có mối quan hệ 1 – nhiều.
-
Swift—KeyPaths (1)
KeyPaths là cách để truy cập đến property chứ không phải truy cập đến giá trị của property. Khi định nghĩa KeyPaths thì ta hoàn toàn có thể xác định/định nghĩa được kiểu biến của KeyPaths…
-
Swift—Codable