Removed deprecated methods calls

Removed deprecated methods calls in iOS6