美文网首页
UIAlertController & UIAlertActio

UIAlertController & UIAlertActio

作者: 四毛哥掉落的鳞片 | 来源:发表于2016-06-28 16:13 被阅读0次

In the case of UIAlertController(), there are two kinds of style: .Alert, which pops up a message box over the center of the screen, and .ActionSheet, which slides options up from the bottom. They are similar, but Apple recommends you use .Alert when telling users about a situation change, and .ActionSheet when asking them to choose from a set of options.

UIAlerAction: There are three possible styles: .Default, .Cancel, and .Destructive. What these look like depends on iOS, but it's important you use them appropriately because they provide subtle hints to users.

相关文章

网友评论

      本文标题:UIAlertController & UIAlertActio

      本文链接:https://www.haomeiwen.com/subject/bbjtjttx.html