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.
精彩评论