自定义UIAlertView [英] Customizing UIAlertView

查看:99
本文介绍了自定义UIAlertView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都有代码可以做到这一点:

Anyone have code to make this:

UIAlertViewHack http:// booleanmagic.com/uploads/UIAlertViewHack.png

或更好的是,使用UIAlertView对象的3x2按钮网格?

or better yet, a 3x2 grid of buttons with images using the UIAlertView object?

我不关心文本字段,它是我想要的网格中的按钮(最好是图像而不是文本)。

I don't care about the textfield, it's the buttons in a grid I want (preferably with images rather than text).

推荐答案

我认为最好的办法是忘记自定义UIAlert视图并自己构建自定义视图。

I think your best bet is to forget customizing UIAlert view and build a custom view yourself.

一个,你是什么显示真的不是一个警报所以它与UIAlertView的设计背道而驰。这意味着您正在改变用户的UI范例,这绝不是一个好主意。

For one, what you're showing really isn't an "alert" so it's counter to what UIAlertView is designed to be for. This means that you're changing the UI paradigm on the user which is never a good idea.

其次,将自定义视图设置为比实际更容易试图破解UIAlertView让它做你想做的事。

Second, it would be much easier to animate a custom view into place than to try and hack UIAlertView to get it to do what you want.

这篇关于自定义UIAlertView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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