Removing boilerplate code in iOS examples.