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

erosenba

macrumors newbie
Original poster
Hi,

I'm creating an app where I will be displaying data in a tableview. I need to be able to show a variable amount of data which is stored in a mutable array (I was thinking in the forms of labels) and have it all in one cell. The table itself also needs to scroll vertically. I currently am loading the cells from a nib file but I can change that if need be. Any suggestions on how to implement some kind of horizontal scrolling or how to display the data would be really appreciated.

Thanks,
Erin
 
Any suggestions on how to implement some kind of horizontal scrolling or how to display the data would be really appreciated.
I would go with multi-line labels and then adjust the height of each row based on its content.
 
UPDATE: I figured it out. Just add the UIScrollView to the cell in IB with a tag. In the cellForRowAtIndexPath method access the scrollview through the viewWithTag method and then set the contentsize and add any subviews you'd like.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.