fixed iOS 6 and iOS 7 depreciations Warnings