UIWebview scrollview changes content without any reason

I have a uiviewcontroller that loads uiwebview. When the uiviewcontroller loads uiwebview, everything is done correctly. But when you go and go back and uiwebview does not load, it displays differently. The uiwebview scroll size for content is increased by 64 pixels, it gets higher.

When it loads for the first, it looks like this: enter image description here

When someone returns to watching, this is what happens

enter image description here

Hope I could understand my problem. If more information is required, I can give more. thank you

+4
source share
2 answers

, viewDidLoad.

if([self respondsToSelector:@selector(setAutomaticallyAdjustsScrollViewInsets:)])
    self.automaticallyAdjustsScrollViewInsets = NO;
+2

.   - (void) viewDidLoad   {        [super viewDidLoad];        self.automaticallyAdjustsScrollViewInsets = ;   }

-1

All Articles