Update for iOS7.
Merge pull request #1 from ducknorris/dk-fix-ios7

Update for iOS7.