How to create a dialog after click button?

Discussion in 'iOS Programming' started by pnitnam, Jul 30, 2008.

  1. macrumors newbie

    Jul 29, 2008
    Hi all

    I'm newbie. And I've wonder how to create a view which I can add labels, text fields,... I use UIAlertView class to do it but it is only available for buttons.

    Here is my code

    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:mad:"UIAlertView" message:mad:"<Alert message>"
    delegate:self cancelButtonTitle:mad:"OK" otherButtonTitles:mad:"Cancel", nil];

    [alert show];

    how can do to add labels, textfield on Alert view?

    Nam Phan

Share This Page