Get Updates By E-mail 

iOS Development Tutorials

Tutorials for iOS development are posted here. The tutorials can cover any topics relevant to iOS developers and tutorials on topics game development, augmented reality, and learning Objective-C have been posted in the past.

If you would like to add a tutorial please submit it here.

Tutorial: Converting Swift Any Structs To JSON Quickly Using A Protocol And The Reflection API

  •  
  •  
  •  
  •  
  •  

NSJSONSerialization allows you to easily convert an NSArray or NSDictionary to JSON, but does not work directly with Swift structs.

Emil Loer has written a nice tutorial about how you can quickly convert a Swift struct to JSON by using a protocol and the Swift Reflections compatible with NSJSONSerialization , and also how you can easily go a step further so that you can easily serialize data types that are not supported by NSJSONSerialization such as NSDate.

You can find the tutorial over on the Codelle website.

A nice guide on how you can use Swift features to very cleanly convert Swift structs to JSON.


  •  
  •  
  •  
  •  
  •  

Tutorial: Creating A Sticker Pack For The iOS 10 Messages App

  •  
  •  
  •  
  •  
  •  

One of the most touted features of iOS 10 is the dramatically improved messages app. With the new messages app Apple ahas dded the Message framework to the iOS SDK enabling the creation of custom extensions.

Simon Ng at AppCoda has created a step by step guide on how to create a custom sticker app extension for the messages app.  You will need Xcode 8 to go through the guide.

You can find the tutorial over on the Appcoda blog.

A nice introduction to creating sticker pack extensions for the new Messages app.


  •  
  •  
  •  
  •  
  •  

An In-Depth Guide On Using Swift’s Lazy Var and LazySequence

  •  
  •  
  •  
  •  
  •  

Lazy variables and Lazy sequences are important features of the Swift language for those looking to optimize resource usage.

Crunchy development have written a nice in-depth tutorial providing a number of examples showing when one would use, and also how to use them. The tutorial does a nice job of pointing out some tricks involving these features.

You can find the tutorial over on the Crunchy Development blog.

A nice tutorial on “being lazy” with Swift.


  •  
  •  
  •  
  •  
  •  

Hipster Swift – A Guide To Understanding Some Of The More Unusual Swift Features

  •  
  •  
  •  
  •  
  •  

Here’s a nice guide from Hector Matos called “Hipster Swift” that nicely explains some features of Swift code that you may often find when looking through someone else’s code, but may not fully understand.

The topics covered in the tutorial are:

@noescape
@autoclosure
inline lazy vars
currying
variadic parameters
the dynamic keyword
special literals
loop labels

You can find the tutorial over on the KrakenDev website.

A nice guide for to some of the more obscure Swift features.


  •  
  •  
  •  
  •  
  •  

In-Depth Tutorial Series On Building A Mobile App With React Native

  •  
  •  
  •  
  •  
  •  

For this year’s F8 conference Facebook has decided to open source write a series of tutorials on how they used the React Native framework to create and open source the F8 conference guide app.

The tutorials provide insights into how the app was designed, how they integrated data into the app using Parse server, how the app was tested, and how you can set up your environment for the app.

The tutorials and app use a number of the open source projects from Facebook including React Native, Flow, Flux, GraphQL, Jest, Relay, Redux and the Nuclide IDE.

Here are a few screenshots of the F8 app from the App Store:

F8 App

F8 App

You can find the tutorial series on the Makeitopen site.

You can find the app on the App Store here.

A nice guide for those looking to create mobile apps with React Native.


  •  
  •  
  •  
  •  
  •