C# 在xamarin iOS底部显示UIAlertController
我要求在iOS的屏幕底部显示警报,现在它显示在屏幕中间。几秒钟后我就要解散了 下面的代码我正在使用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
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);