UIAlertView with three buttons hides message in landscape mode

My UIAlertView has a message and 3 buttons, my problem is to display a warning view, usually in a portrait, but it hides the message in landscape mode, as shown below. How to make a message? Thanks in advance.

Portrait modeLandscape

+5
source share
2 answers

I had the same problem too

But I solved it, with a little change. for example add "\n\n"at the end TitleinalertView

This is not the right decision. but it will fix this problem, something.

* Note. The title and the message should be the same text line.

Thank,

Satya

+3
source

, . , , Apple, , , , .

. LS_ Localizable.strings.

, :

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"LS_Prompt_RateApp_Title", NULL)
                                                        message:(@"LS_Prompt_RateApp_Message", NULL)
                                                       delegate:self
                                              cancelButtonTitle:NSLocalizedString(@"LS_Prompt_RateApp_Never", NULL)
                                              otherButtonTitles:NSLocalizedString(@"LS_Prompt_RateApp_OK", NULL),
                                                                NSLocalizedString(@"LS_Prompt_RateApp_Cancel", NULL),
                              nil];

, - , :

    [ TITLE LINE 1 ]
    [              ] ( message is clipped )
    [ Button #1    ]
    [ Button #2    ]
    [              ]
    [ Button Cancel]

enter image description here

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"LS_Prompt_RateApp_Prompt", NULL)
                                                        message:NULL
                                                       delegate:self
                                              cancelButtonTitle:NSLocalizedString(@"LS_Prompt_RateApp_Never", NULL)
                                              otherButtonTitles:NSLocalizedString(@"LS_Prompt_RateApp_OK", NULL),
                                                                NSLocalizedString(@"LS_Prompt_RateApp_Cancel", NULL),
                              nil];

, - , :

[ TITLE LINE 1 ]
[ TITLE LINE 2 ] ( message == NULL )
[ Button #1    ]
[ Button #2    ]
[              ]
[ Button Cancel]

enter image description here

+1

All Articles