iOS: fixed compiler warning about deprecated methods.
Merge branch 'phonegap3-warningfix' into phonegap3-custom