//
//  UIAlertAction+gmsafekit.m
//  HiSports
//
//  Created by luxiaoming on 16/9/18.
//  Copyright © 2016年 com.ouj. All rights reserved.
//

#import "UIAlertAction+gmsafekit.h"

@implementation UIAlertAction (gmsafekit)

- (void)safeSetTextColor:(UIColor *)textColor {
    NSString *systemVersionString = [UIDevice currentDevice].systemVersion;
    systemVersionString = [systemVersionString componentsSeparatedByString:@"."].firstObject;
    
    if (systemVersionString.integerValue >= 9) {
        [self setValue:textColor forKey:@"_titleTextColor"];
    }
}

@end
