Last year Swift 2.0 was introduced bringing a multitude of new features to the Swift programming language.
The Guard and Defer control statements were added with Swift 2.0 and Nate Cook has written a nice tutorial on the two statements.
In the tutorial Nate explains both statements in depth, and shows how they can be used to streamline your code with included code examples.
You can find the tutorial on the NSHipster blog.
A nice straightforward guide to the guard and defer statements.
Earlier this week I mentioned a nice guide on making content within your apps searchable on device.
Here’s a tutorial from Luke Parham on using iOS’s state restoration feature allowing a user to return to an app exactly the way that they left it.
State restoration is important because if your app is removed from the device’s memory then without state restoration the app will start-up all over again.
In the tutorial Luke covers the creation of a simple app, how to set up that state restoration, how to test state restoration, and how to use the UISTateRestoring protocol to make sure your app state is properly restored.
You can find the tutorial on the Ray Wenderlich blog.
A nice guide to utilizing iOS’s state restoration feature.
Yesterday I mentioned tutorial on how to make apps searchable with the iOS 9 SDK using the Core Spotlight framework.
Here’s a nice tutorial from Brian Coleman on how to implement support for the new 3D touch feature.
In the tutorial Brian explains the types of actions that can be defined in the 3D touch menu, and how to handle things once the user selects a specific item on the menu. An example project is included.
You can find the tutorial over on Brian Coleman’s blog.
A nice guide to implementing the new 3D touch feature.
I’ve mentioned a few resources for those interested in working with metal graphics API such as this example and guide on creating a reaction and diffusion simulation using the Metal Graphics API, and a library for creating particle effects using the Metal API.
Here’s a tutorial from Geppy Parziale on Metal explaining the advantages of using metal vs. other options such as using OpenGL ES, explaining some of the basics of working with the metal framework, and creating a simple example using the Metal framework for fast image processing.
You can find the tutorial on the iNvasive Code blog.
A nice guide for those interested in the Metal framework.
One of the new frameworks added with iOS 9 is the Core Spotlight framework which allows you to make your app’s contact searchable with the on-device index which works with the updated NSUserActivity API for storing app states.
Here’s a tutorial from Gabriel Theodropoulus demonstrating how to use the framework through the creation of a simple app using IMDB data, and then making that data searchable using Core Spotlight with a downloadable example project.
You can find the Core Spotlight tutorial on the AppCoda blog.
A nice guide on using the Core Spotlight framework.