首页 > 解决方案 > UIAlertController SheetView 带有自定义图像,例如 WhatsApp IOS Swift

问题描述

我一直在努力寻找带有图像的 UIAlertController 工作表视图的解决方案。我的目标是在右侧添加一个带有左对齐标签和自定义图像的 UIAlertController SheetView,就像您在此处的屏幕截图中看到的那样。

我已经尝试过其他解决方案,但没有一个有用/回答。

标签: iosswiftuialertcontroller

解决方案


While I can't comment. Can you provide the solutions and/or frameworks you've tried?

The thread here seems quite in-depth: How to customize UIActionSheet? iOS

It references several libraries like https://github.com/xmartlabs/XLActionController

UIAlertController is not very configurable. You'll need a library or create your own custom one.


推荐阅读