Fixed iOS 6 depreciation warnings