Learn Swift and iOS Development
Master iOS development through in-depth tutorials and comprehensive courses on Swift, SwiftUI, UIKit, Core Data, and more.
Master iOS development through in-depth tutorials and comprehensive courses on Swift, SwiftUI, UIKit, Core Data, and more.
Discover the newest tutorials on Swift and iOS development
Discover the newest tutorials on Swift and iOS development
Showing 469 to 480 of 716 posts
NSManagedObject is the class you interact with most when you work with Core Data. The class may appear as a glorified dictionary, but it is much more than that. In this tutorial, I show you three features of the NSManagedObject class you may not know about.
in Core Data
As a budding developer, you learn new things on a daily basis. But once you have found yourself a nice job in a comfortable environment, it can be tempting to become complacent. When was the last time you challenged yourself?
in Inspiration
Now that I'm in my thirties, I have to be more careful about what I do to make sure I stay healthy and productive. Today, I would like to give you a few tips that have helped me stay productive, even when under stress or with a lot on my plate. After reading this article, I'm sure you can appreciate the title of this post.
in Opinion
A technique I use in almost every project leverages the power of categories (Objective-C) and extensions (Swift). This technique is very easy to implement and it rids your project of magic numbers and code duplication. Let me give you an example.
No day go by without me learning something new about Swift and that is probably one of the aspects I enjoy most about the language. Like most developers, I like exploring new technologies.
in Swift
Automatic Reference Counting, or ARC for short, was introduced in Objective-C several years ago. It greatly simplifies memory management in Swift and Objective-C. Automatic Reference Counting usually works without you having to do anything. But there are scenarios in which ARC needs a little bit of help.
in Swift
Core Data received an important update during this year's WWDC. We already explored the addition the of the NSPersistentContainer class and Xcode's improved support for Core Data. But there are several more subtle additions and enhancements worth exploring, such as the NSPersistentStoreDescription class. That is the focus of this tutorial.
in Core Data
Most frameworks and libraries have guidelines and best practices. And Apple’s SDKs are no different. While there is room for experimentation and exploration, a typical iOS application, for example, uses one or more view controllers and the user can navigate between those view controllers. That is a recipe you are probably familiar with.
in Opinion
What is the difference between Core Data and SQLite? Even though it's a common question, it is the wrong one to ask. Comparing Core Data and SQLite is like trying to compare apples and oranges. But why is that?
in Core Data
A few days ago, I wrote about unit testing private methods in Swift. I briefly touched on a topic that is very often overlooked by developers, especially those that are new to unit testing. What are you testing?
in Testing
Earlier this month, I wrote about Core Data faults. Faulting is a key concept of the Core Data framework. It is because of faulting that Core Data is as performant as it is and it ensures Core Data's memory footprint remains at an acceptable level.
in Core Data
Most Cocoa applications are powered by the Model-View-Controller pattern, MVC for short. MVC is easy to understand and has very little overhead. But those that have used the Model-View-Controller pattern for some time know that it isn't perfect. Not even close. The Model-View-ViewModel pattern offers an interesting alternative.