Tuesday, August 6, 2013

Suppress warnings



#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
// ...
#pragma clang diagnostic pop




#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_6_0
        alignment = UITextAlignmentLeft;
#else
        alignment = NSTextAlignmentLeft;
#endif