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 457 to 468 of 716 posts
Core Data is great at managing relationships. In this tutorial, we explore the data model and take a close look at relationships.
in Core Data
The data model is a key component of the Core Data stack and an integral part of every Core Data application. In this tutorial, we explore the data model and learn about entities and attributes.
in Core Data
In the previous tutorial, we set up a Core Data stack using the NSPersistentContainer class. While this is convenient, it teaches you very little about the Core Data stack and how to set one up from scratch. In this lesson, we create a Core Data stack without relying on Xcode's Core Data template.
in Core Data
In the previous tutorial, you learned about the Core Data stack and the classes involved. In this tutorial, we take a close look at Xcode's template for Core Data applications.
in Core Data
If you dipped your toe in iOS or macOS development, then you've probably heard about Core Data. Core Data is Apple's framework for managing and persisting an object graph. It was introduced in 2005, alongside the release of Mac OS X Tiger. On iOS, the framework has been available since iPhone OS 3.0.
in Core Data
Projects with multiple targets often share resources, including localized resources. This is convenient, but it can also lead to problems down the road. In some situations, you want to provide custom translations for one or more targets and use the project’s default translations as a fallback. As far as I know, Cocoa applications don’t support this out of the box. But the solution isn’t too difficult to implement.
in iOS
The first programming language I picked up was PHP and, since it was my first experience programming, I immediately loved it. At that time, I had no idea what object-oriented programming was. The result was a lot of spaghetti code that did something.
The App Store changes at a rapid pace. Even though Apple's mobile marketplace is generating more revenue than ever, many indie developers are struggling to make a living in the App Store. The App Store continues to be a viable marketplace for developers, but it takes hard work, persistence, and grit. I would like to share two tips with you that have helped me succeed in today's crowded App Store.
in Business
Interface Builder makes it very easy to create user interfaces that are driven by Auto Layout. Adding, editing, and deleting constraints is a breeze in Interface Builder. But sometimes you need to work with Auto Layout in code.
in Auto Layout
Swift 3 brought many new features and enhancements to the language. It also introduced several changes to access control by adding two new access levels, open and fileprivate. I already discussed the difference between private and fileprivate earlier this year. In this tutorial, I focus on the difference between public and open.
in Swift
Most applications store small pieces of information in the defaults system. The UserDefaults class, defined in the Foundation framework, provides quick access to the defaults system through an easy to use interface. The following code snippet should look familiar.
in Foundation
What do you do if you want to declare a property internal, public, or open, but you don't want anyone but the instance to set the property? You could solve this problem declaring the property private and defining a computed property that acts as a getter for the private property.
in Swift