Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8105391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:09:02+00:00 2026-06-06T00:09:02+00:00

I want to display message box contain label and textbox and ok button and

  • 0

I want to display message box contain label and textbox and ok button and cancel button when the user press button in the main storyboard and get the string in textbox after the user press ok on IOS ?

i know how to display error message or something like that but i don’t know how to display message box like that ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T00:09:03+00:00Added an answer on June 6, 2026 at 12:09 am
    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Save"
                                                            message:@"Enter File Name"
                                                           delegate:self
                                                  cancelButtonTitle:@"Cancel"
                                                  otherButtonTitles:@"OK", nil];
    
        alertView.alertViewStyle = UIAlertViewStylePlainTextInput;
    
        [alertView show];
    
    
    
    - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
    {
        NSLog(@"Alert View dismissed with button at index %d",buttonIndex);
    
        switch (alertView.alertViewStyle)
        {
            case UIAlertViewStylePlainTextInput:
            {
                UITextField *textField = [alertView textFieldAtIndex:0];
                NSLog(@"Plain text input: %@",textField.text);
            }
                break;
    
            case UIAlertViewStyleSecureTextInput:
            {
                UITextField *textField = [alertView textFieldAtIndex:0];
                NSLog(@"Secure text input: %@",textField.text);
            }
                break;
    
            case UIAlertViewStyleLoginAndPasswordInput:
            {
                UITextField *loginField = [alertView textFieldAtIndex:0];
                NSLog(@"Login input: %@",loginField.text);
    
                UITextField *passwordField = [alertView textFieldAtIndex:1];
                NSLog(@"Password input: %@",passwordField.text);
            }
                break;
    
            default:
                break;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to display a message box with an OK button. I used the
I want to display a message box from a separate thread, however, I get
I want to display a custom confirmation message box (ChildWindow) when the user selects
I want to display a alert message when a user clicks on button. I
I want to display a string in a message box with a following format:
I want to make an application that would display a message when a user
How to display the message Box within the Content Page..? After updating profile..I want
I want to display a link to help in a message box. By default
I want to display a message to the user depending upon a prompt I
In ASP.NET, when the user clicks a button, I want to display a confirmation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.