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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:17:08+00:00 2026-05-24T18:17:08+00:00

I am trying to create the complex UIAlert View .But i am not getting

  • 0

I am trying to create the complex UIAlert View .But i am not getting right mark to get it work
Actaully i need the UIAlertView is like this

  1. It has the png image on the leftside upper corner .And in same line it has the UIAlert titleBar.
  2. Below that it has the message of two line
  3. And it’s below it has the TextFiled .and below the textfield it has
    the once again same TextMessage
  4. And last but not in list it has the Two button .

And ever user enter the text value in textfield and press the OK BUtton it get show on the label also .

I am trying coding like this But it not getting work what was the problem in it

  UIAlertView *message = [[UIAlertView alloc] initWithTitle:@"Set Tags" 
                                                        message:@"Do you want to add tag.\nExample:-My Content" 
                                                       delegate:self 
                                              cancelButtonTitle:@"OK" 
                                              otherButtonTitles:nil];

      [message addTextFieldWithValue:@"" label:@"Enter tag Name"];

      [message addButtonWithTitle:@"Cancel"];




      UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 8, 30, 30)];
      NSString *path = [[NSString alloc] initWithString:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"tag.png"]];
      UIImage *bkgImg = [[UIImage alloc] initWithContentsOfFile:path];
      [imageView setImage:bkgImg];
      [bkgImg release];
      [path release];
      [message addSubview:imageView];

      if(FALSE)
      {
          [message addButtonWithTitle:@"Button 4"];
      }

      [message show];

      [message release]

;

Help me out from this
Thank you.

  • 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-24T18:17:10+00:00Added an answer on May 24, 2026 at 6:17 pm

    Harish,
    I am having a hard time understanding your english so I may not be hitting the mark with this answer. However, If I am understanding the question correctly then I believe I see only one major issue with your code.

    From the documentation that I have read on UIAlertView I do not see the method “addTextFieldWithValue” as part of that class. There is however a reference to UIAlertViewStyle which is a property that can be set that will allow you to tell the class to display itself with a text field. You can find the class reference here

    [message addTextFieldWithValue:@"" label:@"Enter tag Name"];
    //This will not work.
    
    //Instead use this.
    [message setAlertViewStyle:UIAlertViewStylePlainTextInput];
    

    Of course you will need to make sure you have the proper delegate methods added to retrieve the value once buttons are clicked.

    I’ve taken your code and created an example project with only a few minor changes. Using my above suggestion the results I get are reflected in the screen shot I have taken below.
    Example Simulator Screen Shot

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

Sidebar

Related Questions

Trying to create a user account in a test. But getting a Object reference
I'm trying to create a complex view using Drupal 7.8, Views 7.x-3.0-rc1, and References
I'm trying to create a view out of quite a complex select query and
I'm trying to create a controller for a custom complex object but have some
I'm trying to create a semi-complex set of view animations (think an animated version
I'm trying to create a complex (from my opinion) form, but the process is
I'm trying to create a rendering template for my forms which need complex validations
I am trying to create a moderately complex web page. This is not something
I'm trying to create a somewhat complex sorting feature which neither uses divs nor
I am trying to create a quick hashcode function for a complex number class

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.