Blog

Page 694 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How do I size a UITextView to its content?

How do I size a UITextView to its content?

Published on September 2, 2023

šŸ“ How to Size a UITextView to its Content and Avoid Frustrations 😃 Are you a developer who's been struggling with adjusting the size of a `UITextView` to fit its content? šŸ¤” Well, worry no more! In this blog post, we'll explore some common issues and pr

Cover Image for How to add constraints programmatically using Swift

How to add constraints programmatically using Swift

Published on September 2, 2023

# How to Add Constraints Programmatically using Swift šŸ“ This week, we're diving into the world of constraints in Swift! šŸš€ If you've been scratching your head šŸ¤” trying to figure out how to add constraints programmatically to a UIView using Swift, fear

Cover Image for How to lose margin/padding in UITextView

How to lose margin/padding in UITextView

Published on September 2, 2023

šŸ“ How to Lose Margin/Padding in UITextView Hey there, iOS app dev! šŸ‘‹ Do you have a `UITextView` in your app that's causing you grief because of its confusing padding? We feel you! šŸ™Œ In this blog post, we'll walk you through the common issues and provid

Cover Image for Should IBOutlets be strong or weak under ARC?

Should IBOutlets be strong or weak under ARC?

Published on September 2, 2023

# IBOutlets: Should They be Strong or Weak under ARC? šŸ§šŸ’ŖšŸ”¬ So, you're a developer working exclusively on iOS 5 using ARC, and you're wondering whether IBOutlets to UIViews (and subclasses) should be strong or weak? šŸ¤” Well, you're not alone! This questi

Cover Image for How do I create a basic UIButton programmatically?

How do I create a basic UIButton programmatically?

Published on September 2, 2023

šŸ“ Want to learn how to create a basic UIButton programmatically in your iOS app? Look no further! In this guide, we'll walk you through the steps to dynamically create and customize UIButton objects in your view controller's viewDidLoad method. Let's get

Cover Image for Is it possible to disable the network in iOS Simulator?
debugging

Is it possible to disable the network in iOS Simulator?

Published on September 2, 2023

# šŸ“±šŸ–„ļø How to Disable the Network in iOS Simulator If you're an iOS developer, you may have encountered situations where you need to debug issues related to network connectivity in your app. Specifically, you may want to reproduce the network and connect

Cover Image for How can I create a UIColor from a hex string?

How can I create a UIColor from a hex string?

Published on September 2, 2023

## 🌈 Creating a UIColor from a Hex String: Unleash Your Colorful Imagination! šŸŽØ So, you have a challenge - you want to create a `UIColor` object in iOS by using a hexadecimal string like `#00FF00`. Fear not, my friend, for I am here to guide you on this

Cover Image for Convert UTF-8 encoded NSData to NSString

Convert UTF-8 encoded NSData to NSString

Published on September 2, 2023

# Converting UTF-8 encoded `NSData` to `NSString`: The Ultimate Guide šŸ“š So, you're dealing with some funky UTF-8 encoded `NSData` from a Windows server and you need it to be a beautiful `NSString` for your iPhone app. But hold up! 🚦 These platforms have

Cover Image for UITableViewCell, show delete button on swipe

UITableViewCell, show delete button on swipe

Published on September 2, 2023

# How to Show Delete Button on Swipe in UITableViewCell šŸ‘€šŸ” You're swiping away on your `UITableViewCell` like it's a Tinder profile, hoping to see that magical delete button appear. But alas, it's nowhere to be found! 😭 Don't worry, you're not alone in

Blog | Matheus Mello