Greg B
Greg B

Reputation: 14898

Is the UITableView an appropriate control for building a UI like the Facebook app?

I'm looking to build a UI similar to that of the Facebook app seen below.

enter image description here

Is the UITableView appropriate to create this layout? Can it be customised enough to give this style or is there another layout (some kind of vertical stack panel)?

Upvotes: 1

Views: 1060

Answers (2)

Omarj
Omarj

Reputation: 1159

Yes u can,look at this one it is tableview http://www.cocoacontrols.com/controls/mgbox ,

and the same for all this http://www.cocoacontrols.com/search?utf8=✓&q=tableview.

By changing cell height dynamic:

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath      *)indexPath;
{
} 

Upvotes: 0

Fogmeister
Fogmeister

Reputation: 77651

Yes absolutely.

Tableview is used in most apps not just to display data but to create UI layouts too.

To make it easier look into creating a UITableViewCell subclass and doing all the layout of the cell within this subclass.

Doing this keeps the UITableViewController code smaller and easier to manage.

Upvotes: 2

Related Questions