Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在UIAlertview不使用自定义按钮的情况下将图像设置为按钮?
UIAlertview
谁能帮我?
请尝试使用这个。我认为它可能会对您有所帮助..您可以在不使用自定义按钮的情况下这样做。
for (UIView *view in [alert subviews]) { if ([view isKindOfClass:[UIButton class]]) { [view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"imageName"]]]; } }
看到这个 uialertview 按钮
我认为这是最好的WCAlertView你可以改变颜色