Use this tag only for questions directly related to changes in version 2.x of Apple's Swift programming language.
So I can do this: var stringNumb: NSString = "1357" var someNumb: CInt = stringNumb.intValue But I can't find the way to …
swift swift2I give it a try to understand new error handling thing in swift 2. Here is what I did: I first …
swift swift2I know this topic is quite popular, but I'm a little iniciate problem in a programming language, the fact is …
ios swift swift2 modalviewcontroller swift2.1Swift 2 introduced the guard keyword, which could be used to ensure that various data is configured ready to go. An …
swift2 guard-statementI want to do something in Swift 2 that I'm used to doing in multiple other languages: throw a runtime exception …
ios swift swift2I am using presentViewController to present new screen let dashboardWorkout = DashboardWorkoutViewController() presentViewController(dashboardWorkout, animated: true, completion: nil) This presents new …
ios swift swift2 segueI tend to only put the necessities (stored properties, initializers) into my class definitions and move everything else into their …
swift swift2 swift-extensionsIn swift 2.0, print() automatically adds a newline character. In swift 1.2, println() and print() used to be separate functions. So how …
swift swift3 swift2My app shares photo on Instagram, to do this it first saves it on a temporary directory: let writePath = NSTemporaryDirectory().…
ios swift swift2