Applied patch from user thahemp addressing a number of issues in the osgEarthViewerIOS sample.
Merge branch 'master' of https://github.com/gwaldron/osgearth