Blog

Page 83 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How can we programmatically detect which iOS version is device running on?

How can we programmatically detect which iOS version is device running on?

Published on September 2, 2023

## 📱 How to Programmatically Detect the iOS Version on a Device? Are you a developer struggling to detect which iOS version a user's device is running? 🤔 Don't worry, we've got you covered! In this blog post, we will explore the common issue of programm

Cover Image for NSDate get year/month/day

NSDate get year/month/day

Published on September 2, 2023

📝 **Blog Post: How to Get Year/Month/Date from NSDate Object** Are you tired of going through a whole lot of hassle just to get the year, month, and date from an `NSDate` object? We feel you! 🙌 Thankfully, there's a simpler solution that will save you t

Cover Image for How to detect iPhone 5 (widescreen devices)?

How to detect iPhone 5 (widescreen devices)?

Published on September 2, 2023

# How to Detect iPhone 5 (widescreen devices) 📱 So, you've just upgraded to Xcode 4.5 GM and discovered that you can now apply the '4" Retina' size to your view controller in the storyboard. That's pretty exciting! 🎉 But now you're faced with a challen

Cover Image for Make a float only show two decimal places
floating-pointformatting

Make a float only show two decimal places

Published on September 2, 2023

# How to Make a Float Show Only Two Decimal Places Are you tired of seeing a long string of decimal places when you print a float value on the screen? 🤔 Don't worry, we've got you covered! In this blog post, we'll address the common issue of displaying f

Cover Image for How to use NSURLConnection to connect with SSL for an untrusted cert?

How to use NSURLConnection to connect with SSL for an untrusted cert?

Published on September 2, 2023

📝🔐 How to Use NSURLConnection to Connect with SSL for an Untrusted Cert If you're an iOS developer working with NSURLConnection to establish SSL connections, you may have encountered an issue when it comes to self-signed certificates. The error message

Cover Image for How do you print out a stack trace to the console/log in Cocoa?
introspection

How do you print out a stack trace to the console/log in Cocoa?

Published on September 2, 2023

# 🖨️ Printing Stack Trace in Cocoa: A Guide for Developers Are you a Cocoa developer who wants to level up their debugging skills? 🚀 In this post, we'll be exploring how to easily print out a stack trace to the console or log in your Cocoa applications.

Cover Image for UIImageView missing images in Launch Screen on device

UIImageView missing images in Launch Screen on device

Published on September 2, 2023

# 📱 UIImageView Missing Images in Launch Screen on Device: Easy Solutions! Have you ever encountered an issue where, despite having all your images in the right place in Images.xcassets, UIImageViews in your Launch Screen fail to display on certain devi

Cover Image for UIRefreshControl without UITableViewController

UIRefreshControl without UITableViewController

Published on September 2, 2023

## 🔄 Using UIRefreshControl without UITableViewController - A Sneaky Trick! 💡📲 So, you love the cool new iOS 6 `UIRefreshControl` class for implementing pull-to-refresh functionality in your app. But, there's just one problem - you prefer using a `UIVi

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