Hi,
I have a custom cell that I extend from UITableViewCell. Inside it there's an UIScrollView that I add content to it.
I initialise it like that:
Code:
scrollView.contentSize = CGSizeMake(scrollView.frame.size.width * pages, scrollView.frame.size.height);
scrollView.contentOffset = CGPointMake(scrollView.frame.size.width *[pageControl currentPage] , 0);
I put some autoresizing mask through the interface builder.
And I have an event: didRotateFromInterfaceOrientation for setting it up again when the device is rotate.
The trouble comes when the user access the View in Landscape mode! The UIScrollView seems to be resized after the cell is inserted and the didRotateFormInterfaceOrientation is not called obviously. I end up with a weird looking view.
If I them rotate to portrait and then back to landscape everything works fine! It is dam crazy! anybody ran into something similar? Maybe there is an event after the resizing mask takes effect?
regards and many thanks