resolved iOS 7 deprecated API use