Fixes to iOS sample app