replaced deprecated methods
Merge pull request #8 from aogilvie/update/cordova4-compat-ios

replaced deprecated methods