iOS i need a little bit of help.. please im a new one

ColDrake

macrumors newbie
Original poster
Jun 16, 2013
2
0
Hi everyone..
im using the xcode 4.6.2.
im terrible stuck !!! in this case!!!
im trying to put a table in a ViewController,but i dont know if i need to add a uitablecontroller ??
the button function add/edit/delete, must be in the uiviewcontroller or uitablecontroller..without using database..

somebody have a simple example?? not soo dificult.. im new one..

regards!!!

thanks !!
 
Last edited:

ArtOfWarfare

macrumors G3
Nov 26, 2007
8,574
4,005
What do you know already?

You say "I'm a new one", but then also that you're dealing with UITableViews. They're not the most complicated thing, but certainly they shouldn't be the first things you do as someone who is "new".

Do you know C yet? Obj-C? What tutorials or books are you using? Please be as specific as possible.
 
Last edited by a moderator:

Duncan C

macrumors 6502a
Jan 21, 2008
853
0
Northern Virginia
Hi everyone..
im using the xcode 4.6.2.
im terrible stuck !!! in this case!!!
im trying to put a table in a ViewController,but i dont know if i need to add a uitablecontroller ??
the button function add/edit/delete, must be in the uiviewcontroller or uitablecontroller..without using database..

somebody have a simple example?? not soo dificult.. im new one..

regards!!!

thanks !!
You can host a table view in a normal view controller. You need to hook things up yourself, and implement the table view delegate and data source protocols. There should be plenty of sample programs out there doing what you are trying to do.

The disadvantage of a table view controller is that it ONLY manages a table view. If you want other things like buttons, labels, etc, on your window, the table view controller does not support that (The content view of a table view controller is the table view itself, whereas with other types of view controllers the content view is a normal UIView that can hold other views and controls.)

UITableViewControllers really come into their own when you're using static table views, prototype cells, and view controller containment with embed segues. (Embed segues are new in iOS 6.)
 

dejo

Moderator
Staff member
Sep 2, 2004
15,981
447
The Centennial State
im trying to put a table in a ViewController,but i dont know if i need to add a uitablecontroller ??
Accuracy is important in programming. It's also important when seeking help with programming. It is courteous to use actual class names. By "table" do you mean UITableView? And by "uitablecontroller" do you mean UITableViewController?