How to reconfigure UItableViewCell routines to rotate a device?

I have an iPad app in which I have a tableView. The contents of tableviewcell are five images in landscape mode and 4 images in portrait mode. I have customCell and I call setNeedsLayout and overriding the layoutSubviews method to add images with a new frame. But no luck. Any samples or suggestions will help.

thank

+3
source share
1 answer

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

+1
source

All Articles