Update the sample to work with the changes in iOS8.
Merge pull request #43 from rossdargan/master

Update the sample to work with the changes in iOS8.