Macro to switch between ios7 and ios8