Update iOS6 deprecated