Blog

Page 93 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Extract filename and extension in Bash
filenamesstring

Extract filename and extension in Bash

Published on September 2, 2023

# Extracting filename and extension in Bash ### Introduction Do you need to extract the filename and extension of a file in Bash? Whether it's for scripting purposes or simple file manipulation, it's a common task that might come with some challenges. I

Cover Image for Why does Apple recommend to use dispatch_once for implementing the singleton pattern under ARC?

Why does Apple recommend to use dispatch_once for implementing the singleton pattern under ARC?

Published on September 2, 2023

# šŸŽ Why Apple ā¤ļø dispatch_once for implementing the singleton pattern under ARC? If you've ever dived into the world of iOS development, you must have come across the famous singleton pattern. Singletons are a great way to ensure that you have one instan

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

Blog | Matheus Mello