can you please tell me if it is possible to use an uiimage view as uialertview button "text"? i was unable to find the answer googling..
非常感谢
can you please tell me if it is possible to use an uiimage view as uialertview button "text"? i was unable to find the answer googling..
非常感谢
是的,这是可能的,但我不建议这样做。 如果你发现自己是正确的阶层,那么你就不得不通过UI子,我会假定UIButton,并增加你的UIImage语。
for (UIView *v in [myAlertView subviews]) {
if ([v isKindOfClass:[UIButton class]]) {
//IF I AM THE RIGHT BUTTON
[v addSubview:myUIImageView];
}
}
为了确定正确的纽芬兰语,你可以先给它一些奇文,如“foobar5”,并测试每个纽伦语,看看这是否是其案文,如果是的话,删除案文并添加“UIImage”语。
You can use unicode characters, which are rendered as icons. I described it here: Adding Images to UIActionSheet buttons as in UIDocumentInteractionController