SPAlertController icon indicating copy to clipboard operation
SPAlertController copied to clipboard

能否设置 action按钮的背景色?

Open JobsKits opened this issue 5 years ago • 0 comments

你是全部封装在.m里面 ,我拿不到。runtime只能拿第一层: Ivar ivar = class_getInstanceVariable([SPAlertController class], "_headerView");//必须是下划线接属性 UIView *view = object_getIvar(self.spaVC, ivar); view.backgroundColor = kRedColor;

但是我要改按钮背景色怎么做?不想把pod的东西提出来改,最大限度尊重原作者。

JobsKits avatar Sep 11 '20 12:09 JobsKits