views:

833

answers:

2

Hi All,

I want to show pop up of question with it's options. Each question have 3 options. Currently the text is not fitting in the UIAlertView. My UIalertView is in landscape mode.

my questions are,

1) How to change the font and font size of UIAlertView message and Button?

2) How to increase the height and width of UIAlertView?

OR please suggest me any other way , by which I implement the same pop up.

Thanks .

A: 

A better idea might be to make a custom UIView (that you can design in Interface Builder) and have that "pop up" by adding/removing it as a subview from the current view.

greg
A: 

How to increase the height and width of UIAlertView?

Add a lot of spaces, add a lot of new lines.

How to change the font and font size of UIAlertView message and Button?

You can't.


Of course you can set the frame of the alert view and recursively change the font of the subviews of it when the alert is shown, but the result will seldom be satisfying because the implementation of UIAlertView doesn't suppose you're going to mess the view up like this. Better make a custom UIView.

KennyTM