Learn how to program apps for iOS and watchOS
Want to make an iOS App? Start with Swift
The biggest obstacle I see in new app developers is that they struggle with the basics.
Before you learn about
NSManagedObject, you need to fully understand
case let, and
So, if you know no Swift at all and don't know a similar programming language, start with Apple's Swift Programming Language book and Swift playgrounds (on the iPad or in Xcode on a Mac). Learn how to write extremely simple functions and then small sets of structs/classes that work together.
In Apple's book, I would say to at least get through these chapters
- The Basics: If you are brand new, give it read, but realize that some of the topics might be beyond your grasp right now. Come back to it periodically.
- Basic Operators
- Strings and Characters
- Collection Types
- Control Flow
- Structures and Classes
This is enough to get started. But even the simplest real app is going to have Optional Chaining, Inheritance, and Protocols. If you run into something you haven't seen yet, find the chapter where it is discussed.
Then, once you capable of writing small functions on your own, take a look at simple step-by-step app tutorials.
If this sounds good, I wrote up exercises for each chapter of the Swift Programming Language Book.
Sign up to be notified when new articles are available