Using multiple cell XIBs for one UITableView - getting cell height.
Using multiple cell XIBs for one UITableView - getting cell height.
- Subject: Using multiple cell XIBs for one UITableView - getting cell height.
- From: Alex Zavatone <email@hidden>
- Date: Mon, 27 Oct 2014 15:49:41 -0400
I finally got a chance to try out using more than one custom cell XIB in a UITableView and with different cell reuse identifiers, using more than one cell XIB is pretty straightforward.
One issue that appeared though is that the cell heights are those of the cell that gets dequeued. If each cell XIB has its own height, this is ignored and one height for all cells is used.
Of course, that is easy to set manually in heightForRowAtIndexPath, but is it possible to get the height that the is using from the XIB itself, or by some other means? Manually entering the cell height as a CGFloat seems lame when it is already supplied by the XIB itself.
Thanks in advance.
Sent from my iPad. Please pardon typos.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden