PDA

View Full Version : Can I add objects to a UITableView in UI Builder in xCode ?




aneuryzma
May 22, 2011, 04:38 AM
Can I add objects to a UITableView in UI Builder in xCode ?

I've tried to drag a bottom and top bar onto the UITableView but it doesn't work.

Should I embed it into another View instead ?

thanks



dantastic
May 22, 2011, 07:11 AM
if you want stuff north & south of a uitableview you can either stick that stuff into the header & footer of the uitableview or you will have to put everything onto a uiview.

So either embed in another uiview or add to header & footer - but that you'll have to do through code.

aneuryzma
May 22, 2011, 07:17 AM
So.. is the answer "no, only with code. If you want to do it from UIBuilder you need to embed the tableView into a parent view" ?

jnoxx
May 23, 2011, 01:59 AM
If it's customizing your cells into special cells. then u can do it via XIB. With an UITableViewCell, and drag it in there, and use those cells instead of the standards.

If it's about the north/south part, check above posts :p

amorya
May 24, 2011, 03:01 AM
You can design your cells in Interface Builder, but you can only tell it which cells to put where in code.