Update the code for the iOS demos to handle modern devices. Fixes bug #3337
12 files changed