Sample code from one of our iOS apps.