开发者

How to add text in multiple lines in message field of UIAlertView

开发者 https://www.devze.com 2022-12-31 18:08 出处:网络
The AlertView should look like this开发者_如何学Go. AlertView Message: Please provide one of the following parameters to find the doctors.
    The AlertView should look like this开发者_如何学Go.



 AlertView Message:


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


Use \n for a line break.

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


The UIAlertView can be cusomised :

Some info here Customizing UIAlertView

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

However, I think what you want is to build a custom view, or (more simply) use an UIActionSheet - that's the device designed for the purpose!

0

精彩评论

暂无评论...
验证码 换一张
取 消