Skip to content

Commit

Permalink
Merge pull request #17 from argentini/master
Browse files Browse the repository at this point in the history
Added support for status bar "ScrollsToTop" (iOS expected behavior)
  • Loading branch information
tonisalae committed Jan 21, 2013
2 parents 5968eaa + 22e129f commit 6c38c44
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions TSMiniWebBrowser/TSMiniWebBrowser.m
Expand Up @@ -269,6 +269,20 @@ - (void)viewDidUnload
[super viewDidUnload];
}

- (void) viewWillAppear:(BOOL)animated
{
for (id subview in self.view.subviews)
{
if ([subview isKindOfClass: [UIWebView class]])
{
UIWebView *sv = subview;
[sv.scrollView setScrollsToTop:NO];
}
}

[webView.scrollView setScrollsToTop:YES];
}

-(void) viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:animated];

Expand Down

0 comments on commit 6c38c44

Please sign in to comment.