I tried asking for help from someone in person, but they weren't willing to stand up and come and look, so instead I had to print out the paper explaining it below. Rather than take the screen shots again and upload them, I figured I'd just upload the PDF of what I printed.
On the left I have two very similar screen shots... the top shows the program running with font size 20, while the bottom shows the program running with font size 14 (which is what it's set to in the example code.) Notice that the middle cell on the top one cuts off "game!!" while the middle cell on the bottom one properly includes it.
On the right, I have what I believe is all the relevant snippets of code
Basically my issue is that neither the text view nor the cell is setting the height properly. Therefor, there seems to be either:
a.) an issue with how I'm using the sizeWithFont:constrainedToSize:lineBreakMode method
b.) an issue with how the above method calculates height.
I suspect the issue lies in the fact that sizeWithFont:constrainedToSize:lineBreakMode is calculating it's height using something other than a UITextView. What makes me think this? Because it includes "lineBreakMode" as one of its parameters. Text wrapping can't be set on a UITextView... but it can be set on a UILabel. The dumb part is that UILabel will ignore anything related to wrapping and instead the only values that make a difference are whether (and where) to truncate, or to simply crop.
On the left I have two very similar screen shots... the top shows the program running with font size 20, while the bottom shows the program running with font size 14 (which is what it's set to in the example code.) Notice that the middle cell on the top one cuts off "game!!" while the middle cell on the bottom one properly includes it.
On the right, I have what I believe is all the relevant snippets of code
Basically my issue is that neither the text view nor the cell is setting the height properly. Therefor, there seems to be either:
a.) an issue with how I'm using the sizeWithFont:constrainedToSize:lineBreakMode method
b.) an issue with how the above method calculates height.
I suspect the issue lies in the fact that sizeWithFont:constrainedToSize:lineBreakMode is calculating it's height using something other than a UITextView. What makes me think this? Because it includes "lineBreakMode" as one of its parameters. Text wrapping can't be set on a UITextView... but it can be set on a UILabel. The dumb part is that UILabel will ignore anything related to wrapping and instead the only values that make a difference are whether (and where) to truncate, or to simply crop.