ios7 method depreciated