Update to support iOS 7

Hi Daniel,

I updated some lines to support run on iOS 7.