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 6975723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:24:19+00:00 2026-05-27T17:24:19+00:00

Following is the code I am using to create an AlertView. But the Ok

  • 0

Following is the code I am using to create an AlertView. But the Ok button is not visible.

 UIAlertView *prompt = [[UIAlertView alloc] initWithTitle:@"Reset Password" 
                                                     message:@"\n\n" // IMPORTANT
                                                    delegate:self 
                                           cancelButtonTitle:nil 
                                           otherButtonTitles:OTHER_BUTTON_OK, nil];

    prompt.tag=RESET_PASSWORD;
    txtOldPwd = [[UITextField alloc] initWithFrame:CGRectMake(12.0, 50.0, 260.0, 25.0)]; 
    [txtOldPwd setBackgroundColor:[UIColor whiteColor]];
    [txtOldPwd setPlaceholder:@"Old Password"];
    txtOldPwd.text=@"";
    [prompt addSubview:txtOldPwd];
    [txtOldPwd release];

    txtNewPwd = [[UITextField alloc] initWithFrame:CGRectMake(12.0, 80.0, 260.0, 25.0)]; 
    [txtNewPwd setBackgroundColor:[UIColor whiteColor]];
    [txtNewPwd setPlaceholder:@"New Password"];
    txtNewPwd.text=@"";
    [prompt addSubview:txtNewPwd];
    [txtNewPwd release];

    txtConfirmPwd = [[UITextField alloc] initWithFrame:CGRectMake(12.0, 110.0, 260.0, 25.0)]; 
    [txtConfirmPwd setBackgroundColor:[UIColor whiteColor]];
    [txtConfirmPwd setPlaceholder:@"Confirm Password"];
    txtConfirmPwd.text=@"";
    [prompt addSubview:txtConfirmPwd];
    [txtConfirmPwd release];

    [prompt show];

    [prompt release];  

I am adding a screenshot of what I am getting.

enter image description here

Update

I just discovered that button is actually there. Height of Alert is too less. A very little portion of button is visible. I tried this approach but the button is still not visible. Although the height of alert increases.

  • 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-05-27T17:24:20+00:00Added an answer on May 27, 2026 at 5:24 pm

    increase the \n ok

    UIAlertView *prompt = [[UIAlertView alloc] initWithTitle:@"Reset Password" 
                                                         message:@"\n\n\n\n\n" // IMPORTANT
                                                        delegate:self 
                                               cancelButtonTitle:nil 
                                               otherButtonTitles:@"ok", nil];
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'using the following code to create thumbnails using ffmpeg but it was working fine
I've been using the following code to create various struct, but only give people
I am using following code to create a list dynamically. It works fine but
I have created an alert view with two buttons using the following code: UIAlertView
I am currently using the following code to create a web request: Dim myRequest
Okay, so I've got the following code shown below to create a dialog using
Suppose I have the following: using(var ctx = DataContextFactory.Create(0)) { ... Some code ...
I am using following code to create and send email through CGI perl. The
I am using following code NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:listUrl] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:180.0]; // create the
The following code using boost::asio will not compile: #ifndef _SERVER_H_ #define _SERVER_H_ #include Connection.h

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.