test iOS version before using ios7 specific animation