Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MythicFrost

macrumors 68040
Original poster
Mar 11, 2009
3,944
40
Australia
I'm trying to make it so you can have three accounts, I'd like to display them in some kind of menu but what is the best control for that?

Would it be a UITableView? I'd like you to be able to select the one you want and it be highlighted also. I think UITableView is the way to go but maybe there's a better control I am unaware of?
 
If you want to display a list of choices and allow the user to pick one then a grouped tableview is a very common way to do this. Look at Settings.app for numerous examples.
 
Excellent, thank you.

I've had one little set back with TableViews, I don't know how to add an item to it? do I simply add a UITableViewCell as a Subview?
 
Only one little set back? You don't add subviews to a table.

As Dejo suggests, first read the table view programming guide. If you build the navbar template app it includes code for a simple table. There are also tons of blog entries and other bits of advice on how to work with table views on the web.

Once you understand table views you will be well on your way to understanding UIKit. Many of the crucial concepts are widely used throughout the framework.
 
Re..re...read it??? it's huge :'( ok. Thanks.
You'll find, if you haven't noticed already, that there is little patience for questions here that are answered by the documentation and/or various other sources already available to you. For example, check out the average post by robbieduncan in this forum.
 
You'll find, if you haven't noticed already, that there is little patience for questions here that are answered by the documentation and/or various other sources already available to you. For example, check out the average post by robbieduncan in this forum.
Yeah I'm aware of that :p, I'm happy to get pointed in the direction of documentation. Unless it's too complex :p
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.