I have a fairly simple view configuration:
A UIViewController
, with a child UIScrollView
and a UIImageView
in this UIScr
Looks like the problem solved with the dispatch_async
during the viewWillAppear:
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
CGPoint originalContentOffset = self.scrollView.contentOffset;
self.scrollView.contentOffset = CGPointZero;
dispatch_async(dispatch_get_main_queue(), ^{
self.scrollView.contentOffset = originalContentOffset;
});
}