简体   繁体   English

您可以将Xamarin iOS UIAlertController操作表做成多选吗?

[英]Can you make the Xamarin iOS UIAlertController actionsheet into a multiselect?

I've been tasked with adding a feature to an existing app that would allow the user to select multiple items. 我的任务是向现有应用添加功能,该功能允许用户选择多个项目。 I don't have much experience working with native iOS apps, but we use this UIAlertController quite a bit. 我没有使用本地iOS应用程序的丰富经验,但是我们经常使用此UIAlertController。 It seems like it should be possible to convert this control into a multiselect, but even if it's not possible, I just need any easy way to allow the user to select multiple items and then hit an OK button. 似乎应该可以将此控件转换为多选控件,但是即使不可能,我也只需要一种简单的方法就可以允许用户选择多个项目,然后单击“确定”按钮。 Thanks! 谢谢!

UIAlertViewController do not have multi choice function.I suggest you can add a tableview on a UIAlertViewController. UIAlertViewController没有多选功能。我建议您可以在UIAlertViewController上添加表格视图。 在此处输入图片说明

Yes, you can use UIAlertController with action sheet style for your custom list. 是的,您可以将UIAlertController与操作表样式一起用于自定义列表。 https://developer.xamarin.com/api/type/MonoTouch.UIKit.UIAlertController/ https://developer.xamarin.com/api/type/MonoTouch.UIKit.UIAlertController/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM