Blog

Page 84 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How to add a touch event to a UIView?

How to add a touch event to a UIView?

Published on September 2, 2023

# How to add a touch event to a UIView? šŸ–ļø So, you want to add a touch event to a UIView but you're not sure how to go about it. Don't worry, I got you covered! In this guide, I'll walk you through the process step-by-step, addressing common issues and p

Cover Image for Why does viewWillAppear not get called when an app comes back from the background?

Why does viewWillAppear not get called when an app comes back from the background?

Published on September 2, 2023

# Why does `viewWillAppear` not get called when an app comes back from the background? šŸ˜• So you're building an awesome app, and you want to make sure that when the user switches back to your app from the background, you can update the view accordingly. ļæ½

Cover Image for UITableview: How to Disable Selection for Some Rows but Not Others

UITableview: How to Disable Selection for Some Rows but Not Others

Published on September 2, 2023

šŸ“ **Title**: How to Disable Selection for Some Rows but Not Others in UITableview šŸ‘‹ Hey there fellow developers! Have you ever come across a situation where you needed to disable selection for certain rows in UITableview, while keeping others selectable

Cover Image for How do I create a category in Xcode 6 or higher?

How do I create a category in Xcode 6 or higher?

Published on September 2, 2023

# Creating a Category in Xcode 6 or Higher: Unlocking the Power of UIColor šŸ˜ŽšŸŽØ šŸ‘‹ Hey there, fellow iOS developers! Are you trying to take your app's customization game to the next level by creating a category on `UIColor` in Xcode 6 or higher? I hear yo

Cover Image for Why I get the console warning: [Process] kill() returned unexpected error 1 when I load a WKWebView in iOS13.2?

Why I get the console warning: [Process] kill() returned unexpected error 1 when I load a WKWebView in iOS13.2?

Published on September 2, 2023

# šŸš€ Why am I getting the console warning: [Process] kill() returned unexpected error 1 when I load a WKWebView in iOS13.2? Are you a fellow iOS developer who recently updated to iOS 13.2 beta and encountered an annoying console warning everytime you load

Cover Image for UIView frame, bounds and center

UIView frame, bounds and center

Published on September 2, 2023

# Understanding UIView frame, bounds, and center šŸ–¼ļø Do you find yourself confused when trying to work with the `frame`, `bounds`, and `center` properties of a `UIView`? šŸ¤” Don't worry, you're not alone! Many developers struggle with these concepts, but f

Cover Image for Differences between strong and weak in Objective-C

Differences between strong and weak in Objective-C

Published on September 2, 2023

# Understanding Strong and Weak in Objective-C šŸ“š If you're an Objective-C developer, you've probably come across the terms "strong" and "weak" when dealing with property declarations in your code. These keywords play a crucial role in managing memory and

Cover Image for Assertion failure in dequeueReusableCellWithIdentifier:forIndexPath:

Assertion failure in dequeueReusableCellWithIdentifier:forIndexPath:

Published on September 2, 2023

šŸ“ **Title: Troubleshooting Assertion Failure in ```dequeueReusableCellWithIdentifier:forIndexPath:```** ⚔ **Introduction** Hey there tech enthusiasts! Are you facing an assertion failure issue with the ```dequeueReusableCellWithIdentifier:forIndexPath:``

Cover Image for How to hide "Back" button on navigation bar on iPhone?

How to hide "Back" button on navigation bar on iPhone?

Published on September 2, 2023

# **How to Hide the 'Back' Button on the Navigation Bar on iPhone?** Are you tired of having that pesky 'Back' button cluttering up your navigation bar? Do you want to create a seamless user experience by hiding it when it's not needed? Look no further! I

Cover Image for How to print Boolean flag in NSLog?

How to print Boolean flag in NSLog?

Published on September 2, 2023

# šŸ•¹ļø How to Print Boolean Flag in NSLog? šŸ–Øļø So you're building your awesome iOS app and you have a Boolean flag that you want to print using `NSLog`. You want to see if the flag is `true` or `false` in your console output. Well, the good news is, you've