When you get the errorĀ App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app’s Info.plist file., you can override the security and allow all http urls through by adding this to your info.plist file: <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key><true> </true></dict> However, before doing this,… Continue reading Override Application Transport Security in xCode
Tag: iOS
Display formatted date from DatePicker in iOS
If you have an NSDate object from a UIDatePicker and you want to display it formatted: let dateFormatter = NSDateFormatter() dateFormatter.dateStyle = NSDateFormatterStyle.MediumStyle myDateLabel.text = dateFormatter.stringFromDate(myDatePicker.date)