Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在xamarin iOS底部显示UIAlertController_C#_Xamarin_Xamarin.ios - Fatal编程技术网

C# 在xamarin iOS底部显示UIAlertController

C# 在xamarin iOS底部显示UIAlertController,c#,xamarin,xamarin.ios,C#,Xamarin,Xamarin.ios,我要求在iOS的屏幕底部显示警报,现在它显示在屏幕中间。几秒钟后我就要解散了 下面的代码我正在使用 void ShowAlert(string message, double seconds) { alertDelay = NSTimer.CreateScheduledTimer(seconds, (obj) => { dismissMessage(); }); alert = UIAlertController.Create(null, m

我要求在iOS的屏幕底部显示警报,现在它显示在屏幕中间。几秒钟后我就要解散了

下面的代码我正在使用

void ShowAlert(string message, double seconds)
{
    alertDelay = NSTimer.CreateScheduledTimer(seconds, (obj) =>
    {
        dismissMessage();
    });
    alert = UIAlertController.Create(null, message, UIAlertControllerStyle.Alert);
    UIApplication.SharedApplication.KeyWindow.RootViewController.PresentViewController(alert, true, null);
}
我怎样才能使它的位置降到底部

iOS屏幕底部显示的警报

您想使用“操作表”样式

苹果文档:


哇!它看起来很漂亮,我不能化妆吗?
var alert = UIAlertController.Create("StackOverflow", "Rocks", UIAlertControllerStyle.ActionSheet);