Blog

Page 85 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Can I use Objective-C blocks as properties?

Can I use Objective-C blocks as properties?

Published on September 2, 2023

# Can I use Objective-C blocks as properties? Is it possible to have blocks as properties using the standard property syntax? šŸ¤” And what about changes in ARC? Let's dive into these questions! ## Understanding Objective-C Blocks Before we dig into the m

Cover Image for What should my Objective-C singleton look like?

What should my Objective-C singleton look like?

Published on September 2, 2023

šŸ“ Hey there tech enthusiasts! Are you wondering what your Objective-C singleton should look like? šŸ¤” Don't worry, I've got you covered! In this blog post, we'll address common issues, provide easy solutions, and help you level up your singleton game! šŸ’ŖšŸ¼

Cover Image for What is the best way to unit test Objective-C code?
unit-testing

What is the best way to unit test Objective-C code?

Published on September 2, 2023

# šŸš€ The Best Way to Unit Test Objective-C Code: A Complete Guide! So, you want to unit test your Objective-C code, huh? šŸ•µļøā€ā™‚ļø Well, you've come to the right place! In this guide, we'll explore the best frameworks to unit test your Objective-C code and h

Cover Image for Hidden Features of Xcode
macos

Hidden Features of Xcode

Published on September 2, 2023

# Unleash the Power of Xcode: Hidden Features and Pro Tips! šŸ’ŖšŸš€ <p>Calling all Xcode enthusiasts! Are you ready to discover the hidden gems of this powerful development tool? Look no further, as we dive into the world of Xcode's hidden features and unlea

Cover Image for NSString property: copy or retain?

NSString property: copy or retain?

Published on September 2, 2023

# NSString property: copy or retain? šŸ” When it comes to managing an `NSString` property in Objective-C, the question of whether to use the `copy` attribute or the `retain` attribute often arises. It's crucial to understand the differences and potential i

Cover Image for How do I use NSTimer?

How do I use NSTimer?

Published on September 2, 2023

šŸ“£ Hey there tech enthusiasts! Today, we're gonna dive into the fascinating world of timers and explore the wonders of using NSTimer in your code. So buckle up and get ready for a wild ride! šŸŽ¢ āŒ›ļø Have you ever wondered how to use an NSTimer? Look no furt

Cover Image for How to check if a string contains a substring in Bash
shellstringsubstring

How to check if a string contains a substring in Bash

Published on September 2, 2023

šŸ“ **Title:** How to Check if a String Contains a Substring in Bash: Simplified Solutions and Examples! šŸ’»šŸ”Ž šŸ“– **Introduction:** Have you ever wondered how to easily check if a string contains a specific substring in Bash? šŸ¤” Look no further, as we're ab

Cover Image for Difference between objectForKey and valueForKey?

Difference between objectForKey and valueForKey?

Published on September 2, 2023

šŸ”Ž **Understanding the Difference between objectForKey and valueForKey** šŸ’” Have you ever encountered the perplexing dilemma of choosing between `objectForKey` and `valueForKey`? šŸ¤” Don't worry! You're not alone. These two methods may seem similar at firs

Cover Image for Use of alloc init instead of new
oop

Use of alloc init instead of new

Published on September 2, 2023

# Title: "The alloc init vs new Dilemma: Which one should you use?" Hey there, tech enthusiasts! šŸ˜Ž Have you ever wondered about the difference between using `alloc in

Cover Image for How to scale a UIImageView proportionally?

How to scale a UIImageView proportionally?

Published on September 2, 2023

šŸ“· How to Scale a UIImageView Proportionally? šŸ“ Are you struggling with scaling a UIImageView while maintaining its proportion? Let me guide you through an easy solution! šŸ˜Ž šŸ” Understanding the Common Issue: So, you have a UIImageView and you want to s