From 2ce271e6645d0424cb15f5c7efe1b44e4ec7e48b Mon Sep 17 00:00:00 2001 From: David Sinclair Date: Tue, 27 Oct 2015 21:52:11 -0700 Subject: [PATCH] iOS: fixed #779 (selected text glitch) Easier than expected; just needed to detect when it's been blanked and force a redraw. Makes loading a different story tidier, too. --- clients/ios/Classes/StoryDetailViewController.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clients/ios/Classes/StoryDetailViewController.m b/clients/ios/Classes/StoryDetailViewController.m index b3e56d694..5b8ee7163 100644 --- a/clients/ios/Classes/StoryDetailViewController.m +++ b/clients/ios/Classes/StoryDetailViewController.m @@ -205,6 +205,7 @@ - (void)viewDidDisappear:(BOOL)animated { [super viewDidDisappear:animated]; + [self clearStory]; } - (void)viewWillDisappear:(BOOL)animated { @@ -226,6 +227,10 @@ _orientation = [UIApplication sharedApplication].statusBarOrientation; NSLog(@"Found stale orientation in story detail: %@", NSStringFromCGSize(self.view.bounds.size)); } + + if ([self.webView.request.URL.absoluteString isEqualToString:@"about:blank"]) { + [self drawStory]; + } } - (void)viewDidAppear:(BOOL)animated {