是否可以在UIAlertView上垂直布置2个按钮? [英] Is it possible to lay out 2 buttons vertically on UIAlertView?

查看:82
本文介绍了是否可以在UIAlertView上垂直布置2个按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用两个按钮创建UIAlertView。我需要垂直布置这些按钮(我的文字太大了)。可能吗 ?

I want to create UIAlertView with two buttons. I need to lay out these buttons vertically (my text is too big). Is it possible ?

Screen1

Screen2

推荐答案

这是不可能的默认。在nycynik的答案中显示的外观是当你有两个以上的按钮时会发生什么。

It's not possible by default. The appearance shown in nycynik's answer is what happens when you have more than two buttons.

所以,要么添加另一个按钮,要么你可以调查第三方解决方案作为此库,虽然我还没有测试过。

So, either add another button, or you could look into a third-party solution such as this library, although I have not tested it.

这篇关于是否可以在UIAlertView上垂直布置2个按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆