PDA

View Full Version : Why my TableCell show in not good status?




mikezang
Jul 17, 2010, 09:16 AM
I made a table view app with subviews in TableViewCell, but when I run it, I got screen as below, I want to know why, please help me to solve this simple problem.



robbieduncan
Jul 17, 2010, 10:51 AM
You might want to describe the problem. What did you expect to see?

mikezang
Jul 17, 2010, 10:55 AM
sorry that I forgot to describe my question, you can see the text in table cell, they seem like compressed, I mean shorter in height, only 3rd row looks like correct, any row else strange, can you confirm it?

robbieduncan
Jul 17, 2010, 11:03 AM
I'm not about to download your project and fix your code but I would guess you've set the cells to be pretty narrow and the text is scaled to fit the narrow cell.

mikezang
Jul 17, 2010, 11:31 AM
I tried to increase height, but I got the same result. you can see picture as below.

robbieduncan
Jul 17, 2010, 11:43 AM
I did not suggest you increate the height. I suggested you increase the width.

mikezang
Jul 17, 2010, 11:54 AM
I did not suggest you increate the height. I suggested you increase the width.
Thanks, sir! I got it!

By the way , is it possible to let label in autosize status?