Blog
Page 149 of my articles, tutorials, and thoughts
Latest Articles
Programmatically go back to previous ViewController in Swift
# š Going Back to Previous ViewController in Swift Are you struggling to find the correct way to programmatically go back to the previous ViewController in Swift? You're not alone! Many developers face this common issue when building iOS apps. But don't
How do I dispatch_sync, dispatch_async, dispatch_after, etc in Swift 3, Swift 4, and beyond?
š Dispatching with Ease in Swift 3, Swift 4, and Beyond! š š Hey there, fellow Swift developers! Are you struggling with migrating your code from Swift 2.x to the mighty Swift 3 and beyond? Are you facing errors and issues with dispatching tasks using
Convert NSDate to NSString
# **Converting NSDate to NSString: A Handy Guide** Have you ever found yourself in a situation where you have an `NSDate` object, but you only need to extract the year and represent it as an `NSString` in the format `@"yyyy"`? Don't worry, you're not alon
What is the difference between a weak reference and an unowned reference?
# Understanding Weak References and Unowned References in Swift In Swift, we have three types of references: strong, weak, and unowned. While strong references are the default and most commonly used, weak and unowned references play crucial roles in manag
Execute action when back bar button of UINavigationController is pressed
# How to Execute an Action When the Back Bar Button of a UINavigationController is Pressed in Swift š Have you ever needed to perform a specific action when the back button of a UINavigationController is pressed in your iOS app? Maybe you want to clear s
How to hide keyboard in swift on pressing return key?
# How to Hide Keyboard in Swift on Pressing Return Key? Are you struggling with hiding the keyboard on pressing the return key in your Swift app? Don't worry, you're not alone! Many developers face this common issue while using `UITextField`. But fear not
ReactiveCocoa vs RxSwift - pros and cons?
# ReactiveCocoa vs RxSwift - Pros and Cons: Which one to choose? š¤ Are you a Swift developer wanting to dive into reactive programming? Look no further! In this blog post, we'll compare two popular frameworks: ReactiveCocoa and RxSwift. We'll discuss the
Programmatically set the initial view controller using Storyboards
# š±š” Setting the Initial View Controller Programmatically in Storyboards So you've got a Storyboard and you want to dynamically control which view controller is displayed when your app launches. š Don't worry, it's easier than you might think! In this
How to copy text to clipboard/pasteboard with Swift
# How to Copy Text to Clipboard/Pasteboard with Swift šš Hey there tech enthusiasts! š Are you struggling to find a clean example of how to copy text to the iOS clipboard, so you can easily paste it in other apps? Look no further! In this blog post, w






