iPhone Life - Best Apps, Top Tips, Great Gear
Swift 101 - Classes, Variables, Properties & Methods
By Kevin McNeish
As promised, here is my first installment on learning to program in the new Swift language!
Defining Classes in Swift
The following code shows an example of a Swift class definition:
To declare a class in Swift, you use the class keyword followed by the name of the class. If it has a superclass, you add a colon and the name of the superclass. The beginning and end of the class are indicated by the opening and closing curly braces.
8 Reasons Swift is Easier to Learn & Use than Objective-C
By Kevin McNeish
Over the years I have literally taught tens of thousands of people how to write code in Objective-C through training classes, conferences, online forums, and my book series. Based on the mountain of feedback I have received, I can tell you some key points that make Swift much easier to learn than Objective-C.
If Objective-C is the only language you have ever coded in, I have one thing to say about moving to Swift. Welcome to the 21st century.
- ‹ previous
- 2333 of 2483
- next ›
