Search
January 2023 M T W T F S S 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 31 Categories
Hours & Info
Bookmark
Category Archives: iOS
Auto Layout
let view = UIView() view.translatesAutoresizingMaskIntoConstraints = false Interface Builder will automatically set its value to false if the view has constraints defined. But for the views created in code, it defaults to true. UIView has a property called auto resizing … Continue reading
Key-Value Observing
Key-value observing is a mechanism that allows objects to be notified of changes to specified properties of other objects. You can use key-value observing with a Swift class, as long as the class inherits from the NSObject class. You can … Continue reading
How to upload an App with universal framework to AppStore?
Cocoapods is a popular dependencies management tool for iOS development. We notice that in Cocoapods-v1.3, the framework MUST include simulator (x86_64, i386) architectures, otherwise the pod spec lint will fail and the pod cannot be uploaded to Cocoapods server. It … Continue reading
Cocoapod tips
check installed cocoapod plugin gem list –local | grep cocoapods create pod pod spec create POD_NAME https://eladnava.com/publish-a-universal-binary-ios-framework-in-swift-using-cocoapods/ Register an account by running the following, entering your full name and e-mail address: pod trunk register you@email.com 'Full Name' create pod demo … Continue reading
Hide implementation of swift framework when distributing
In this article, I will demonstrate how to create a Swift NiceLogger framework and push to Cocoapods without sharing source code. You can download the final project from NiceLogger 1. Create a Swift framework 1.1 Create a new framework project … Continue reading
iOS Grand Central Dispatch
GCD provides three main types of queues:  1.1 Main queue Main queue runs on the main thread and is a serial queue. This is a common choice to update the UI after completing work in a task on a … Continue reading
RxSwift Scheduler
Where we call subscribeOn() in a chain doesn't really matter when to call it. Where we call observeOn() does matter. subscribeOn() tells the whole chain which thread to start processing on. We should only call it once per chain. If … Continue reading
How to generate **.cer** and **.p12** file for iOS push notification
Every time I created a new app with push notifications, iOS, I'm sure I've got everything right and then something refused to work. So this time I'm writing it down so I can't possibly get it wrong again.  Generally, … Continue reading