Search

Developers Log

A blog about software developing and technology

Tag

mobile

Swift 3: an introduction to Promises with PromiseKit

A Promise is an object that represents the result of an asynchronous operation. Promises make easier working with asynchronous calls, and make for cleaner, and easier to understand code. The PromiseKit project allow us to add promises to our Swift projects.

Advertisements

Swift 3: quick guide to ObjectMapper

A simple guide through examples to ObjectMapper: although using a mapper library is not strictly required, doing so will allow us to map JSON into objects in a quicker, and easier manner.

Swiff 3 : reusable components using .xib files and the Interface Builder

In this post we will see how to create reusable components using the Interface Builder: we will design our component (drag and drop of components , layout constraints, etc) as if we were working in a Storyboard, save the result as a .XIB file, and see how we can reuse our component in different Storyboards (or even in other .XIB files).

When Alamofire returns .Success on error HTTP Status codes

By default Alamofire treats any completed request as successful: as long as it can connect to server, and the server responds, it will consider that everything is OK. This means you will be getting a .Success even on this situations when the HTTP status code returned on those calls corresponds to some 4xx HTTP error code.

Swift 3: Simple REST with Alamofire

Simple REST request in Swift 3. A quick guide, through examples, to the most commonly used features of Alamofire.

Basic authentication in Swift 3.0

In this post we will see how we can connect to a RESTFUL service that uses basic authentication in Swift 3.0 using Alamofire, or URLRequest

http request blocked: meet App Transport Security

App Transport Security was intended to protect the user's privacy; Its most immediate affect, however, has been to greet iOS developers around the world with the following error message: 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.

Blog at WordPress.com.

Up ↑