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

  • Home
  • SEARCH
  • 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 8273043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:20:25+00:00 2026-06-08T07:20:25+00:00

I am interested in making a left-aligned UIAlertView with several lines like a bulletin

  • 0

I am interested in making a left-aligned UIAlertView with several lines like a bulletin list that would look like the following:

  • line 1
  • line 2
  • line 3

Here’s what I have so far:

alert = [[UIAlertView alloc] initWithTitle: @"How to use buttons"
                                   message: @"line 1. line 2, line 3 "
                                  delegate: nil
                         cancelButtonTitle: @"OK"
                         otherButtonTitles: nil];

I also want to change the color of the alert view to red.

  • 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-08T07:20:26+00:00Added an answer on June 8, 2026 at 7:20 am

    Bullets are represented by the unicode code 0x2022. I got it to work like this using “\n” for new lines:

    UIAlertView *alert = [[UIAlertView alloc]
                initWithTitle: @"How to use buttons"
                message: [NSString stringWithFormat: @"%C line 1.\n %C line 2,\n %C line 3", (unichar) 0x2022, (unichar) 0x2022, (unichar) 0x2022];
                delegate: nil
                cancelButtonTitle:@"OK"
                otherButtonTitles:nil];
    

    That should work for the bullets.

    For the left alignment, do this:

    NSArray *subViewArray = alertView.subviews;
    for(int x = 0; x < [subViewArray count]; x++){
    
        //If the current subview is a UILabel...
        if([[[subViewArray objectAtIndex:x] class] isSubclassOfClass:[UILabel class]]) {
            UILabel *label = [subViewArray objectAtIndex:x];
            label.textAlignment = NSTextAlignmentLeft;
        }
    }
    

    So in summary:

    • “\n” for displaying new lines.
    • [NSString stringWithFormat:@"%C Line n", (unichar) 0x2022]; for the bullets.
    • For the alignment, iterate through the subviews of the alert view and identify which subviews are subclasses of UILabel. Then change the text alignment of the labels to left alignment using label.textAlignment = NSTextAlignmentLeft.
    • After you do all this, then you can call [alert show];.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am interested in making a Google Talk client using Python and would like
I am interested in making some sort of HTML page that displays the name
I am interested in making a simple command line utility ( in C )
I'm interested in making a cross-platform Facebook, but non-browser based application. Therefor I'd like
I'm interested in making an immutable class that has properties that cannot be modified,
I an interested in making animated wallpaper apps for the iPhone. This means that,
Recently, i've got interested in making a front-end for command-line program. I guess there's
I'm interested in making ghost preview elements of very complex DOM objects. While I
Suppose I have a supertype table with many subtype tables. I'm interested in making
I'm making a sound for the iPhone and I'm interested in adding background music

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.