Blog

Page 146 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Simplest way to throw an error/exception with a custom message in Swift?

Simplest way to throw an error/exception with a custom message in Swift?

Published on September 2, 2023

# Simplest way to throw an error/exception with a custom message in Swift? πŸ˜• Are you a Swift developer struggling to find a way to throw a runtime exception with a custom message in your code? You're not alone! Many developers coming from other programmi

Cover Image for Move textfield when keyboard appears swift

Move textfield when keyboard appears swift

Published on September 2, 2023

# Move UITextField when Keyboard Appears in Swift! πŸ˜ƒπŸ“± Are you facing issues with moving the `UITextField` when the keyboard appears in your iOS app using Swift? Don't worry, we've got you covered! In this guide, we'll address common problems, provide ea

Cover Image for HTTP Request in Swift with POST method
httprequestparameters

HTTP Request in Swift with POST method

Published on September 2, 2023

# πŸ“ The Easiest Way to Send HTTP Request in Swift with POST Method Are you struggling to send an HTTP request with the POST method in Swift? Do you want to send parameters to a URL without bothering about reading the response? We got you covered! In this

Cover Image for Get User"s Current Location / Coordinates

Get User"s Current Location / Coordinates

Published on September 2, 2023

πŸŒŽπŸ“πŸ’‘ Blog Post: Getting User's Current Location: A Beginner's Guide to Coordinates and Maps Introduction: Welcome to another exciting blog post where we tackle the common problem of getting the user's current location and displaying it on a map. πŸ—ΊοΈπŸ“ˆ W

Cover Image for Xcode 8 / Swift 3: "Expression of type UIViewController? is unused" warning

Xcode 8 / Swift 3: "Expression of type UIViewController? is unused" warning

Published on September 2, 2023

# Fixing the "Expression of type UIViewController? is unused" warning in Xcode 8 / Swift 3. 😱🚫 So you've upgraded to Xcode 8 and suddenly you start seeing this warning: "Expression of type `UIViewController?` is unused." 😳 But everything seems to be wo

Cover Image for How to iterate for loop in reverse order in swift?

How to iterate for loop in reverse order in swift?

Published on September 2, 2023

# How to Iterate a For Loop in Reverse Order in Swift If you've ever tried using a `for` loop in Swift to iterate over a range of numbers in reverse order, you might have encountered an unexpected behavior. In this blog post, we'll explore the issue and p

Cover Image for Printing a variable memory address in swift
debugging

Printing a variable memory address in swift

Published on September 2, 2023

# πŸ–¨οΈ Printing a Variable Memory Address in Swift Have you ever wondered how to print the memory address of a variable in Swift? It's a useful technique when debugging or understanding how memory is allocated within your code. In this blog post, we will e

Cover Image for How to stop unwanted UIButton animation on title change?

How to stop unwanted UIButton animation on title change?

Published on September 2, 2023

# πŸš«πŸ”„ How to stop unwanted UIButton animation on title change? Do you want to change the title of a UIButton without any unnecessary animations? Are you experiencing a frustrating delay or blink effect when updating the title? You're not alone! Many iOS

Cover Image for Save string to the NSUserDefaults?

Save string to the NSUserDefaults?

Published on September 2, 2023

πŸ“ Blog Post: Save String to the NSUserDefaults? πŸ“š πŸ‘‹ Hey there, tech enthusiasts! Are you struggling with saving a string to the NSUserDefaults? Fear not! In this blog post, we'll dive into common issues and provide easy solutions for saving string data

Blog | Matheus Mello