AUTHOR:

Gitter is a communication product for communities and teams on GitHub. Find out more at gitter.im.

Navigation

Drop Database Migration in Core Data

Core Data supports migrating persistent stores [https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/CoreDataVersioning/Articles/Introduction.html] (databases) from one model (schema) to the next without losing the existing content. It involves keeping versions of your model and the required mappings between them. However if you have a REST based app, then you are probably fine with not having to migrate the user's content as you can just fetch it all again…

The Command Line

This post has been adapted from a talk I originally gave at codebar [http://codebar.io], which is a non-profit initiative that facilitates the growth of a diverse tech community by running regular programming workshops. It is targeted to those who are learning to code. This post is in two parts, a little history, followed by some live command line examples. History Way back in the 60s - 70s, computers were becoming more than just calculators.…

How to Cache Fragments in Android

If you have an Android app with multiple fragments that are unable save state (e.g they have a WebView [http://developer.android.com/reference/android/webkit/WebView.html#saveState(android.os.Bundle)] ), it can be a real drag to your users when state is lost when navigating around your app. To fix this, we can cache the fragments that your user has visited by using some features of the FragmentManager [http://developer.android.com/reference/…

How to cache view controllers in iOS

If you have an iOS app with multiple child view controllers, it can be annoying when their layout state is lost when switching between them. Scroll View and Web View state are tricky to persist, but we can instead cache the entire view controller with NSCache [https://developer.apple.com/library/prerelease/mac/documentation/Cocoa/Reference/NSCache_Class/index.html] . 0: Creating a Master-Detail app For this we will use Xcode's starter template, but…

Why A369D5 means "purple"

This post has been adapted from a talk I originally gave at codebar [http://codebar.io], which is a non-profit initiative that facilitates the growth of a diverse tech community by running regular programming workshops. It is targeted to those who are learning to code. If we wanted all our links to be "codebar purple", we would write a css rule like this: a { color: #a36965 } But this seems like a weird way to…