Blog

Page 87 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How to log a method"s execution time exactly in milliseconds?
optimizationtime

How to log a method"s execution time exactly in milliseconds?

Published on September 2, 2023

šŸ“ **Title: Timing is Everything: How to Log a Method's Execution Time in Milliseconds** Are you tired of playing the guessing game with your code's performance? Ever wondered how long it takes for a method to complete its execution down to the millisecon

Cover Image for Easy way to see saved NSUserDefaults?
macos

Easy way to see saved NSUserDefaults?

Published on September 2, 2023

## Easy Way to See Saved NSUserDefaults? šŸ˜ŽšŸ’¾ Is there a way to see what's been saved to `NSUserDefaults` directly? I'd like to see if my data saved correctly. šŸ¤” If you're wondering how to check the `NSUserDefaults` and ensure your data has been saved c

Cover Image for How to load a UIView using a nib file created with Interface Builder

How to load a UIView using a nib file created with Interface Builder

Published on September 2, 2023

# How to Load a UIView Using a Nib File Created with Interface Builder šŸ˜ŽšŸ’» Are you trying to create a "Questionnaire" component for your `QuestionManagerViewController`, but running into issues with loading different views? Don't worry, we've got you cov

Cover Image for Undefined symbols for architecture i386: _OBJC_CLASS_$_SKPSMTPMessage", referenced from: error

Undefined symbols for architecture i386: _OBJC_CLASS_$_SKPSMTPMessage", referenced from: error

Published on September 2, 2023

šŸ“ **Title:** "Solving the 'Undefined symbols for architecture i386' Error in SKPSMTPMessage Framework" šŸ’”**Introduction:** Hey there! šŸ‘‹ Are you running into the "Undefined symbols for architecture i386" error while using the SKPSMTPMessage framework fo

Cover Image for How to add spacing between UITableViewCell

How to add spacing between UITableViewCell

Published on September 2, 2023

# How to Add Spacing Between `UITableViewCell` Do you want to add some breathing space between the cells in your `UITableView`? Look no further! In this guide, we'll address the common issue of how to add spacing between `UITableViewCell` and provide you

Cover Image for Understanding dispatch_async
asynchronous

Understanding dispatch_async

Published on September 2, 2023

# Understanding `dispatch_async` šŸ”„ In the world of multithreading, one of the most powerful tools at our disposal is `dispatch_async`. It allows us to perform tasks off the main thread asynchronously, ensuring smoother user experience and optimal perform

Cover Image for How to compare two NSDates: Which is more recent?

How to compare two NSDates: Which is more recent?

Published on September 2, 2023

# How to compare two NSDates: Which is more recent? šŸ’»šŸ’” Welcome back to our tech blog! Today, we're going to address a common issue many developers face when trying to compare two `NSDate` objects to determine which one is more recent. This problem came

Cover Image for setNeedsLayout vs. setNeedsUpdateConstraints and layoutIfNeeded vs updateConstraintsIfNeeded

setNeedsLayout vs. setNeedsUpdateConstraints and layoutIfNeeded vs updateConstraintsIfNeeded

Published on September 2, 2023

šŸ“ **Title: The Secret Behind setNeedsLayout vs. setNeedsUpdateConstraints** Hey there! Are you confused about the difference between `setNeedsLayout` and `setNeedsUpdateConstraints`? šŸ¤” Don't worry, you're not alone! In this blog post, we'll uncover the

Cover Image for What are the Dangers of Method Swizzling in Objective-C?

What are the Dangers of Method Swizzling in Objective-C?

Published on September 2, 2023

šŸ“ **The Dangers of Method Swizzling in Objective-C** Method swizzling, a technique in Objective-C, allows developers to modify the mapping of class selectors to their corresponding implementations. While it may seem like a clever hack, it comes with its

Blog | Matheus Mello