How to create a bulleted list?

Discussion in 'iOS Programming' started by nyquist212, Oct 30, 2008.

  1. macrumors newbie

    Joined:
    Oct 30, 2008
    #1
    I'm creating an app that allows users to write a bulleted list.

    Each time they type a line and hit return, its a new item on the list.

    I can't figure out how to format my lines so a bullet point displays infront of the line.

    Does anyone know how to do this?

    Thanks so much for your time. Any bit of help is great!
     
  2. macrumors 68000

    Joined:
    Feb 12, 2008
    Location:
    Illinois
    #2
    You're probably going to want to provide your own bullets. Then simply go
    Code:
    cell.image = [UIImage imageNamed:@"bullet.png"];
    This will place it at the left side of the cell text.

    If you want the right side, then use accessoryView.
     
  3. thread starter macrumors newbie

    Joined:
    Oct 30, 2008
    #3
    Thanks! I'll give that I try and let you know if it works.
     
  4. macrumors member

    Joined:
    Apr 15, 2008
    Location:
    Sydney, Australia
    #4
    I would like to implement the code in the post above. What is the best size to have the image (in pixels) for use in the UITableView?
     
  5. thread starter macrumors newbie

    Joined:
    Oct 30, 2008
    #5
    I'd like to do this for text view, not table view.

    Does anyone know how to do this?
     

Share This Page