Dao - add macros detect OS version

try detect rotation on iOS5 and 6 … but not good