Xcode Visual Memory Debugger

One of the new tools inside Xcode 8 is the Visual Memory Debugger. Detecting retain cycles just became easy.

Source: Xcode Visual Memory Debugger

iOS 10 Screencast: Thread Sanitizer

Another great addition to Xcode 8 is the Thread Sanitizer. It automatically detects race conditions (multiple threads reading/writing to the same memory).

Source: iOS 10 Screencast: Thread Sanitizer

objc.io – Swift Talk

One of the best videos I’ve seen recently. These guys write a very basic and naive “Network stack” using Swift. They start from scratch, write a few lines of code and then refactor. They repeat the process over and over. The best thing about this video are the comments and reasoning they provide along the process. The end result is a short playground file which you can download and explore (in Swift 2.2). Definitely check this out if you are into learning swift.

Source: https://talk.objc.io/episodes/S01E01-networking

 

Protocol oriented loading of resources from a network service in Swift ~ Marisi Brothers

Protocol oriented programming has been a cool buzz word since last year’s WWDC. A follow up session was presented in this year’s WWDC and although I didn’t had a chance to watch the new session yet I think that Protocol oriented programming will become main-stream fast, especially since Swift becomes more and more popular. Anyways, this is a long and very detailed example on how to apply this approach and implement a simple network stack on iOS.

Source: Protocol oriented loading of resources from a network service in Swift ~ Marisi Brothers

Self-sizing Table View Cells

A very thorough guide on how to build a UITableView with dynamic Cells. As a bonus the last section also goes through creating expanding cells. Including all the code samples. (Xcode 7.3/iOS9/Swift2.2)

Source: Self-sizing Table View Cells

Swift 3 – Ole Begemann

Since Swift is open source most of the changes in the new major version were already known before WWDC. Having said that, Apple did made a few interesting changes (mostly naming) for the new Swift release. Click this one to read more.

Source: Swift 3 – Ole Begemann

Neural Networks in iOS 10 and macOS | Big Nerd Ranch

I few months ago I started reading about Neural Networks and Machine Learning algorithms in general. At WWDC 2016, Apple introduced two neural network APIs, called Basic Neural Network Subroutines (BNNS) and Convolutional Neural Networks (CNN). An interesting move in my honest opinion. Read this one for more information.

Source: Neural Networks in iOS 10 and macOS | Big Nerd Ranch

Technical Note TN2434: Minimizing your app’s Memory Footprint

This detailed guide provides a walkthrough of the steps to profile your app’s memory usage in Xcode. Using Instruments Allocations tool, tracking memory allocations and tracing back to the source code.

Source: Technical Note TN2434: Minimizing your app’s Memory Footprint

What’s new in Swift 3.0: learn all the changes in one place – Hacking with Swift

Version 3.0 of Swift is expected later this year. Although there is no final version yet and the language is still under development there are some known “source breaking” changes. This post reviews some of the most important ones and will help you prepare for the 3.0 release.

Source: What’s new in Swift 3.0: learn all the changes in one place – Hacking with Swift

POLYMORPHISM AND PROTOCOL EXTENSIONS

I really recommend this post. It includes a great simple example of how to use protocol extensions instead of having an if/else-if statements. It also includes a few very good arguments to why the result is much better. Just read it.

http://ctarda.com/2016/04/polymorphism-and-protocol-extensions/