Drawing custom buttons

Discussion in 'iOS Programming' started by MythicFrost, Jun 14, 2009.

  1. MythicFrost macrumors 68040

    MythicFrost

    Joined:
    Mar 11, 2009
    Location:
    Australia
    #1
    Hey, I've dragged a rounded rect button to my view, I've changed the type of it to custom, I want to draw on it now, how can I do this?

    In the iPhone -> Settings, you see at the very top the first button has two round corners, the bottom are square and all the other buttons below it are square except for the last button which has it's bottom corners rounded, so it looks really nice, I'd like to do that.

    Can anyone help?

    Kind Regards
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    You can get that style automatically by using a UITableView and UITableViewStyleGrouped.
     
  3. MythicFrost thread starter macrumors 68040

    MythicFrost

    Joined:
    Mar 11, 2009
    Location:
    Australia
    #3
    Ah great, thank you!

    How do I change the items on that TableView, I'd only like 4, but there is like 90 items! and not what I want them to say!

    Kind Regards
     
  4. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    You'd have to do it in code. Look through Apple's many examples/tutorials on UITableView.
     

Share This Page