fixing top bar problem (ios), added macros for better detection of version (ios) and fixed rotation value (ios)