【问题标题】:How to add text in multiple lines in message field of UIAlertView如何在 UIAlertView 的消息字段中添加多行文本
【发布时间】:2010-05-25 07:36:22
【问题描述】:
    The AlertView should look like this.



 AlertView Message:


     Please provide one of the following parameters to find the doctors.
                     Speciality
                     Location
                     Insurance

【问题讨论】:

    标签: iphone


    【解决方案1】:

    使用\n 换行。

    ... message:@"1st line of message\n2nd line of message\n\n\n5th line of message" ...
    

    【讨论】:

      【解决方案2】:

      UIAlertView 可以自定义:

      这里有一些信息 Customizing UIAlertView

      这里 http://www.iphonedevsdk.com/forum/iphone-sdk-development/1704-uitextfield-inside-uialertview.html

      但是,我认为您想要的是构建自定义视图,或者(更简单地)使用 UIActionSheet - 这是为此目的而设计的设备!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-06-24
        • 2012-03-19
        • 2011-03-25
        • 2012-02-13
        相关资源
        最近更新 更多