NSString is cut off prematurely in a UITableViewCell in 3.0, but looks fine in 3.1?

Well, I don't have an answer or solution. But I just wanted to point out I'm facing the same issues. I thought I'd let you know that you're not the only one, that's probably worth something I'm using Xcode 3.1.3 with the 3.0 iPhone SDK installed (not a beta).

The "blank space" appears both in the simulator and on the device both running firmware 3.0. I haven't tried a more recent version.

Well, I don't have an answer or solution. But I just wanted to point out I'm facing the same issues. I thought I'd let you know that you're not the only one, that's probably worth something.

I'm using Xcode 3.1.3 with the 3.0 iPhone SDK installed (not a beta). The "blank space" appears both in the simulator and on the device both running firmware 3.0. I haven't tried a more recent version.

Thanks for the feedback. It's to hear I am not the only one, although the error seems strange and definitely fixable. Those cells are important in my app so now that 3.1 is out it's not a problem.

I req. 3.0 anyway so req. 3.1 should be a big problem I hope.

But def let me know if you find out how to fix it. – runmad Sep 18 '09 at 11:15.

You need to determine the size of the text area that is rendered with the text in it. To do this use a function similar to below and then set that for the row height of the tableviewcell in question. Adjust your font size accordingly.

I added a pad of 20 to give it some space to breathe UIFont *cellFont = UIFont fontWithName:@"Helvetica" size:14.0; CGSize constraintSize = CGSizeMake(280.0f, MAXFLOAT); CGSize labelSize = detailValues objectAtIndex:indexPath. Section sizeWithFont:cellFont constrainedToSize:constraintSize lineBreakMode:UILineBreakModeWordWrap; labelHeight = labelSize. Height + 20.

As you can see from my code, that's not the issue. – runmad Sep 25 '09 at 19:48.

I am using UITableViewCellStyleValue2 and UITableViewStyleGrouped. So basically, for 3.0 and 3.1 the exact same thing is happening, but when running the app in 3.0 simulator, the last line seems to get cut off if the cell.detailTextLabel. NumberOfLines has more than three lines of text.

The strange thing is that the text is just cut off, but the cell is drawn at the correct height in 3.0, there's just a big blank whitespace underneath the cell. Anyone know why this is different between 3.0 and 3.1? I know I am using a beta of Xcode, but it's pretty strange that it works in the beta and not in 3.0 because, as far as I can see, I am not doing anything too crazy, but something basic.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions