xcode5 and ios7 compatibility