End of the road, and thanks for reading this blog!
Nov 15, 2020, 9:17 AM
TL;DR: I got demotivated from iOS development, and moved to web development instead, new blog at https://rubyyagi.com .I have been writing on this iOS development blog for 2.5 years (start of 2018 until mid of 2020), wrote 80+ articles...
Toggle iCloud sync on/off for NSPersistentCloudKitContainer
Jul 28, 2020, 6:31 AM
I wanted an option for user to toggle iCloud sync on / off for my own app AuthCat (2FA OTP app with iCloud sync).Some users may not feel comfortable sharing their data to cloud, or just prefer to not sync data between devices, so it is...
Read and validate in-app purchase receipt locally using TPInAppReceipt
Jul 21, 2020, 6:45 AM
TPInAppReceipt library encapsulates the receipts data in an InAppReceipt object, you can retrieve the local receipt data using .localReceipt() method like this :
Use Xcode Previews with UIKit
Jun 7, 2020, 11:20 AM
Prerequisite: You will need macOS Catalina (10.15)+ and Xcode 11+ to run Xcode Previews.Apple introduced Xcode Previews in WWDC 2019 alongside with SwiftUI, which allow us to view UI changes immediately after each change, instead of...
3 steps to speed up storyboard
May 23, 2020, 6:45 AM
1. Remove the use of IBDesignable if possible
2. Uncheck automatically refresh views
3. Use Storyboard reference and refactor
What is Delegate? Understand it by building your own
May 13, 2020, 6:47 AM
Delegate isn't some magical pattern, it is just a variable referencing a ViewController or other object, then you just call the method on that variable....
How to transition from login screen to tab bar controller
Apr 30, 2020, 3:43 PM
This article assumes your app will only have one scene all of the time. (ie. no multiple scenes at the same time in iPad).At the end of this post, you will be able to implement a login screen (a navigation controller which can push to...
How to solve invalid_client error in Sign in with Apple
Apr 18, 2020, 10:50 AM
Here's the usual suspect when invalid client error happens :
1. Are you using the correct client_id in your HTTP request?
2. Does your JWT header contains all the required parameters?
3. Does your JWT payload contains all the required...
Open app in specific view when push notification is tapped (iOS 13+)
Apr 16, 2020, 7:29 AM
Say you have an app and want to redirect user to a specific view when a push notification is tapped, eg: going to a specific chat room in Telegram after tapping push notification of that message. How do we proceed to implement this? 🤔This...
Inspect app folder in simulators and real device
Apr 2, 2020, 10:56 AM
Your app might store some data or files in the Documents folder, and sometimes you might want to check if the data / files are stored correctly by inspecting them. How do we find the app folder containing the data?You can also inspect the...
Introduction to Localization (add additional language support to your app)
Mar 8, 2020, 7:40 AM
Localization means making your app support additional languages. Usually we will start with english as the base language as default, then slowly adding more language support on top of it.Table of Contents :Adding new languageAdding and...
How to expand and contract height of a UITableView cell when tapped
Feb 9, 2020, 12:32 PM
To avoid confusion, this article focuses on expanding and contracing the height of a single tableview cell when it is tapped. I googled around and found out many people used the same terms for inserting new cells under the tapped cell,...
How to implement dynamic height table view cell (self sizing)
Jan 23, 2020, 5:49 AM
To let Auto Layout know how to calculate the height of the cell, we need to create sufficient constraints from top of the cell's content view to the bottom.
Move view when keyboard is shown (guide)
Jan 11, 2020, 12:46 PM
Just want the code to move the view up? Just want the code to scroll the scrollview up?Most likely you have worked on an app with multiple textfields, and when the keyboard show up, there's a chance that your text field will get covered by...
How to use scroll view in Interface Builder / Storyboard (Xcode 11)
Dec 30, 2019, 6:43 AM
Table of contents:Structure of scroll viewContent Layout guide and Frame Layout guideStep 1: Put a scroll view into the view controller and set constraintsStep 2 : Put a view inside the scroll view and set constraintsStep 3: Placing UI...
Sign in With Apple implementation tutorial
Dec 16, 2019, 7:18 AM
This article is for implementation on the iOS side , if you are looking for the backend implementation part, check out this book!In WWDC 2019, Apple has announced a new privacy-focused mechanism for user to sign in on third party app,...