0
A
回答
0
ActionSheet
从UIAlertController
// Create a new Alert Controller
UIAlertController actionSheetAlert = UIAlertController.Create("Action Sheet", "Select an item from below", UIAlertControllerStyle.ActionSheet);
// Add Actions
actionSheetAlert.AddAction(UIAlertAction.Create("Item One",UIAlertActionStyle.Default, (action) => Console.WriteLine ("Item One pressed.")));
actionSheetAlert.AddAction(UIAlertAction.Create("Item Two",UIAlertActionStyle.Default, (action) => Console.WriteLine ("Item Two pressed.")));
actionSheetAlert.AddAction(UIAlertAction.Create("Item Three",UIAlertActionStyle.Default, (action) => Console.WriteLine ("Item Three pressed.")));
actionSheetAlert.AddAction(UIAlertAction.Create("Cancel",UIAlertActionStyle.Cancel, (action) => Console.WriteLine ("Cancel button pressed.")));
// Required for iPad - You must specify a source for the Action Sheet since it is
// displayed as a popover
UIPopoverPresentationController presentationPopover = actionSheetAlert.PopoverPresentationController;
if (presentationPopover!=null) {
presentationPopover.SourceView = this.View;
presentationPopover.PermittedArrowDirections = UIPopoverArrowDirection.Up;
}
// Display the alert
this.PresentViewController(actionSheetAlert,true,null);
更多信息:https://developer.xamarin.com/recipes/ios/standard_controls/alertcontroller/
相关问题
- 1. 我们可以在对话框中打开对话框吗?
- 2. JQuery对话框可以打开另一个JQuery对话框吗?
- 3. 我可以在Watson对话服务对话框中使用LaTex脚本吗?
- 4. 我可以在Android中的MapActivity中显示对话框吗?
- 5. 我可以在Java Web Start中禁止加载对话框吗?
- 6. 我们可以在xamarin.ios中使用xamarin.android代码吗?
- 7. 你可以重写MessageDlg调用自定义TForm /对话框吗?
- 8. Android:我可以显示多个对话框吗?有没有像对话Z级?
- 9. 我可以将jQuery UI对话框居中放到div中吗?
- 10. 对话框X可以从jQuery UI 1.7对话框中禁用吗?
- 11. 我可以使用WPF的UserControl上的对话框和DialogResult吗?
- 12. JQuery:我可以使用对话框打开外部网页吗?
- 13. 我可以使用Windows对话框移动/覆盖文件吗?
- 14. 我可以禁用y对话框的打印页面吗?
- 15. 我可以在JavaScript中获得两个连续的对话框吗?
- 16. 引导模式对话框可以覆盖另一个对话框吗?
- 17. (How)我可以在标准文件打开对话框中使用FutureWindows吗?
- 18. 我们可以在警报对话框中使用资产html文件吗?
- 19. 我可以使用自定义列表出现在警报对话框中吗?
- 20. 我可以在getter中调用RequestDispatcher吗?
- 21. 我可以在Python中调用Perl吗?
- 22. 我可以在Service.onStartCommand中调用stopSelf()吗?
- 23. 我可以用纯SQL做这个吗?
- 24. 我可以用Spock来做这个吗?
- 25. 我可以使用jQuery简化这个ajax调用吗?
- 26. 我可以省略对话标题吗?
- 27. 你可以使用wxPython自动隐藏框架/对话框吗?
- 28. Safari可以在模态对话框中显示ReCaptcha吗?
- 29. 完成活动后,我们可以显示对话框吗?
- 30. 我可以编辑浏览器对话框的按钮吗?
换句话说,这不是内置的? – GenericTeaCup
它内置! – TonyMkenu
创建对话框的可能性是内置的。但确切的项目“呼叫”,“发送信息”,...的确切对话需要手动完成。这是你内置的意思,我猜? – GenericTeaCup