The device version checking fixed. The other macro thing here placed against the compiler warnings (if you raise your deployment target to 7, it will warns you using deprecated symbols)