Category: Swift
-
UIKit Drawing Tutorial Fix
I tried the tutorial from raywenderlich.com but the behavior was incorrect. The canvas or UIImageView seems to move after lifting my finger. It tried to run the official project from raywenderlich.com but it has the same strange behavior. Luckily I found a solution, you need to change this line inside touchesEnded function And that’s it.
-
iOS 15 Button Title
If you encountered default titles on your UIButton when using setImage() like my situation below. As you can see on the screenshot below, I removed the title. So everything should be alright. And when I run it on my iOS 15 device. What the. Anyway, solution is simple. On your UIButton’s Atrribute inspector, set the […]
-
OnlineJobs for iOS (v4.5.2) Bug
Last week, it was one of those times where you know something went wrong when suddenly you get multiple Slack notifications. I received a Slack notification for every minute, I had to mute the channel. When I open the Bugsnag dashboard, I could see it was affecting hundreds of users. As of this moment, 154 […]
-
Dynamic TableViewCell Height
I’m going to demonstrate on how I achieved the dynamic height for my UITableViewCell. Below is what it looks like. This is a UITableViewCell for comments. ImageView on the left side is for the user’s avatar, the top most UILabel is for the username and lastly at the bottom is the UILabel for comment. Yes […]
-
Code Refactoring: First Loom Video
In programming, you always encounter duplicate code blocks. The best thing to do is to place it in a separate function so that we can reuse it throughout our source code.