Fix for methods that are deprectated in iOS 7.0 SDK

Hi,

I fixed the use of methods that are deprecated in iOS 7.0.

This warning:
![schermafbeelding 2014-08-22 om 21 14 43](https://cloud.githubusercontent.com/assets/1686739/4021588/fc893152-2af9-11e4-8c36-052e0173d4b8.png)