获取UIAlertAction的key,设置颜色

        unsigned int count = 0;
        Ivar *ivars = class_copyIvarList([UIAlertAction class], &count);
        for (int i = 0; i

获取了成员变量的名字之后,再去设置颜色
[alertAction setValue:titleColor forKey:@"titleTextColor"];

你可能感兴趣的:(获取UIAlertAction的key,设置颜色)