End of the road, and thanks for reading this blog!
Fluffy - Axel Kee
by Axel Kee
3y ago
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 and 52 Xcode tips in email! Thank you for reading this blog! I started this blog after failing a job interview for an iOS developer position for a popular messaging app company, I was burnt out at previous iOS dev job and was thinking alternative way to make money aside from full time job. I then came across 30x500 course by Amy Hoy and Alex Hillman (not ..read more
Visit website
Toggle iCloud sync on/off for NSPersistentCloudKitContainer
Fluffy - Axel Kee
by Axel Kee
4y ago
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 important to have an option to let them disable it. My app default is iCloud sync off, they have to turn it on manually. There's some NSPersistentCloudKitContainer tutorial online, but there isn't much guide on how to implement the sync toggling functionality, so I have decided to write this. This tutorial assume that you already have a NSPersistentCloudKitCo ..read more
Visit website
Read and validate in-app purchase receipt locally using TPInAppReceipt
Fluffy - Axel Kee
by Axel Kee
4y ago
Table of contents: Disclaimer and Caveats Prerequisite Installation Getting the receipt data Check if user has purchased products or has active subscription Check receipt original app version Validate receipt Disclaimer and Caveats This tutorial is aimed to get you on feet to validate and read the in-app purchase receipt data as easy as possible using a library, using library might make it easier for jailbreaker to retrieve your app's premium content for free. The reason so many tutorials out there asks you to include OpenSSL library as static library in the bundle, is to make it harder for ..read more
Visit website
Use Xcode Previews with UIKit
Fluffy - Axel Kee
by Axel Kee
4y ago
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 needing to recompile the app after each UI changes. You might think that Xcode Previews only works for SwiftUI project, but it can work on UIKit's UIViewController and UIView too! This makes coding UI programmatically a lot more attractive now with (almost) instant preview, and you don't have to deal with slow IBDesignables in Storyboard anymore. This article as ..read more
Visit website
3 steps to speed up storyboard
Fluffy - Axel Kee
by Axel Kee
4y ago
When you are working on storyboard with many view controllers, especially with IBDesignable UI, it can take quite a long while to open storyboard, and then you hear your Mac fan spins like it is about to take off ? ?. Here's 3 steps you can take to speed up the storyboard. 1. Remove the use of IBDesignable View if possible IBDesignable is great for showing custom view attributes lilke cornerRadius, shadow on the storyboard without having to build and run the app. However Xcode seems to use a lot of resource on rendering IBDesignable, and sometimes it will automatically build when you are jus ..read more
Visit website
What is Delegate? Understand it by building your own
Fluffy - Axel Kee
by Axel Kee
4y ago
In this tutorial, we are going to replicate tableview and its dataSource and delegate properties using a vertical stackview like this : We will implement custom functions like numOfRows, textAtRow and buttonTappedAtRow for the stack view, which mimics tableview's numberOfRowsInSection, cellForRowAt, didSelectRowAt functions. By the end of this tutorial, you will learn how delegate works, and have some understanding on how tableview datasource and delegate works. Before moving on, I recommend you to download the starter project, which contain the Textfield, segmented control and the blank sta ..read more
Visit website
How to solve invalid_client error in Sign in with Apple
Fluffy - Axel Kee
by Axel Kee
4y ago
One of the major roadblock on implementing Sign in with Apple is generating the client_secret parameter, which is required when sending a HTTP POST request to Apple's token validation endpoint (https://appleid.apple.com/auth/token), which exchange authorization code for an access token. client_secret is a JWT (JSON Web Token) string you generate to prove that the HTTP request indeed comes from you (or your code), not originated from possible attacker. Here's the usual suspect when invalid client error happens : Are you using the correct client_id in your HTTP request? Does your JWT header c ..read more
Visit website
Inspect app folder in simulators and real device
Fluffy - Axel Kee
by Axel Kee
4y ago
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 UserDefaults data by going to AppFolder/Library/Preferences/Your_app_bundle_id.plist . Simulators For simulator, the app folder is stored in your Mac. You can get the path of this folder by printing  NSHomeDirectory() print("app folder path is \(NSHomeDirectory())") You can put this line in viewDidLoad function, and get the path in the Xcode console. Copy ..read more
Visit website

Follow Fluffy - Axel Kee on FeedSpot

Continue with Google
Continue with Apple
OR