开发者

Where to set tableView.rowHeight?

I'm t开发者_如何学Pythonrying to figure out where to properly set tableView.rowHeight. Currently I have it in my ViewDidLoad method, but as I am using images it seems to be scaling the images up from the default.

E.g. my cell images are 55px squared. But if I set [self.tableView.rowHeight = 55.0]; in ViewDidLoad, they look a bit blurry.


You have to make space for the table view separator line (that is 1px), so if your image height is 55px, your table row height needs to be 56px.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜