Ok I am working on a project, and it would be VERY helpful if I could somehow figure out how to change one (or all) of the cells so that their height is contingent on the amount of text they hold. I found a tutorial on the internet that made it seem quite feasible, but I just am getting stuck becuse I am copying and pasting his code right into my app, and there is an error that pops up where his code reads:
NSString *text = [items objectAtIndex:[indexPath row]];
If there is a quick fix using this tutorial, or if anyone could explain what the items thing is all about, thatd be great
In this example ‘items’ is an NSArray that holds the values to be added as cells to the table. Often you would populate such an array in your
or
So, once you use this method to supply your data the method in the tutorial you linked should work.
in your header file you would want
and
and in your .m file
then in either of the methods listed above, this