iOS, Mobility

Swift For-Loops

In Swift 3.0 C-style for-loops will be removed. This will force developers to use a swift syntax for for-loops. So lets begin with swift for loops : Looping n times [code language="objc"] // output is 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 for i in 0..<10 { print(i) } // or for i in 0...9 { print(i) } [/code] Looping n...

by Ashu Baweja
Tag: swift
10-Jul-2016

iOS, Technology

12 Key Differences between Objective C and Swift

Apple recently unveiled a new programming language Swift, to replace Objective-C for OS X and iOS application development. The advent of Swift marks the transformation from a decade old language to a naive yet effective programming language - Swift. The main purpose of introducing Swift is to provide a new easier, simpler, more flexible...

by Swati Khatri
Tag: swift
21-Jun-2016

iOS, Mobility

What’s New in Swift 2.0

One year ago, Apple released Swift, a brand new programming language for both iOS and OS X development and now they introduced Swift 2 with Xcode 7 this year. Swift 2 includes some new features such as improved error handling, availability check and , protocol extensions etc. Lets take the overview of new features. Error handling : ...

by Ashu Baweja
Tag: swift
04-Nov-2015