try, try! & try? what’s the difference, and when to use each?
In Swift 2.0, Apple introduced a new way to handle errors (do-try-catch). And few days ago in Beta 6 an even newer keyword … Read more
In Swift 2.0, Apple introduced a new way to handle errors (do-try-catch). And few days ago in Beta 6 an even newer keyword … Read more
I am trying to register my application for local notifications this way: UIApplication.sharedApplication().registerUserNotificationSettings(UIUserNotificationSettings(forTypes: UIUserNotificationType.Alert | UIUserNotificationType.Badge, categories: nil)) In Xcode 7 and Swift … Read more
Getting this error in Swift 2.0. Binary operator ‘|’ cannot be applied to two UIViewAutoresizing operands Here is the code: let view = … Read more
Swift 2 introduced the guard keyword, which could be used to ensure that various data is configured ready to go. An example I … Read more