开发者

How to rearange the UItableViewCell's subviews on device rotation?

I have an iPad app in which I have a tableView. 开发者_开发问答The contents of the tableviewcell are five images in landscape mode and 4 images in portrait mode. I have the customCell and i am calling setNeedsLayout and overiding layoutSubviews method in there to re add the images with new frame. But no luck. Any samples or suggestions would help.

Thanks


Reload the tableview. And cellForRowAtIndexPath:, check the orientation and add 5/4 depending on the orientation.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜