ios - 如何在 UIActionSheet 中的文本旁边插入图像?

标签 ios uiview xamarin.ios uiactionsheet uiactionsheetdelegate

我试图在 Xamarin.ios 应用程序中创建一个 UIActionSheet,其中每行都有一个图像和文本。我们有办法做到这一点吗?

我已经按照 Alanc Liu 在此链接中提供的示例进行操作: For "actionSheetAlert", what's after (action) => .

然而,这只是文本。如何将字符串替换为图像 + 字符串的组合?

附上截图以阐明要求...需要添加自定义图像来代替所有这些笑脸。

谢谢。

enter image description here

最佳答案

这对于普通的 UIAlertController/UIAlertAction 是不可能的。您需要创建自定义 View Controller 才能获得此功能。

关于ios - 如何在 UIActionSheet 中的文本旁边插入图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57600208/

相关文章:

iphone - CGAffineTranformRotate atan2 不准确

xamarin.ios - monotouch 的评估版本无法构建为 native 代码

iOS:提高图像绘制速度

ios - UITextView/UITextField 中的格式化文本/标签

iOS 在应用程序启动时动画 subview ?

xamarin.ios - 来自崩溃日志Xamarin.iOS的更多详细信息

xcode - 当 UIButton 的 alpha 设置为 0.0 时,它会被禁用吗?

ios - 使用未声明的类型 'Player'

ios - 应用程序在 runTransitionForCurrentState 上崩溃,但不知道为什么

swift - CAShapeLayer - UIVIew 内的圆