Made ViewController of example project work with simulator with undeprecated methods.
Merge pull request #133 from tfrank64/master

Fixed deprecations in ViewController.m and made to work in simulator as well. Though xcode may still give warnings.