CFNetwork SSLHandshake failed (-9824) NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)

From NSURLConnection to NSURLSession worked for me I was able to solve as following( NSURLConnection is deprecated and you need to use NSURLSession) : converted to: From NSURLConnection to NSURLSession Also included in Info.plist see documentation: Info.plist reference And ultimately Announcement: CFNetwork SSLHandshake failed (-9824) while integrating Login with Amazon SDK for iOS Back to … Read more

CFNetwork SSLHandshake failed iOS 9

iOS 9 and OSX 10.11 require TLSv1.2 SSL for all hosts you plan to request data from unless you specify exception domains in your app’s Info.plist file. The syntax for the Info.plist configuration looks like this: If your application (a third-party web browser, for instance) needs to connect to arbitrary hosts, you can configure it … Read more

What does the shrink-to-fit viewport meta attribute do?

It is Safari specific, at least at time of writing, being introduced in Safari 9.0. From the “What’s new in Safari?” documentation for Safari 9.0: Viewport Changes Viewport meta tags using “width=device-width” cause the page to scale down to fit content that overflows the viewport bounds. You can override this behavior by adding “shrink-to-fit=no” to your meta tag as shown … Read more

UIStackView before iOS 9.0

Check inProject Targets-> Deployment info -> Deployment Target.If it’s not 9.0 change it to 9.0. You need to change the deployment target of your application’s target to iOS 9. Otherwise the app supports down to whatever OS that your deployment target is set to. Not solved?? Check out for other reason??? Check this: If your … Read more

Declaration is only valid at file scope (extension)

The error message is quite clear. You cannot declare an extension inside of anything – inside a class declaration, inside a struct declaration, etc. It must be outside of everything, at the top level of the containing file. There must be no curly braces around it. You have not shown the context in which you are declaring this extension, but clearly there are curly … Read more