Fix for iOS 7.
Merge pull request #1 from Connorhd/patch-1

Fix for iOS 7.