Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用自己的NavigationController,push的时候会晃动一下 #11

Open
robert1202 opened this issue Mar 20, 2016 · 3 comments
Open

Comments

@robert1202
Copy link

如题,因为项目需要,要用自己的NavigationController,push的时候会闪动一下,有什么解决方案吗?ths

@szxinyu
Copy link

szxinyu commented Mar 22, 2016

作者自己应该也不知道怎么解决。他的demo里也有问题。

@szxinyu
Copy link

szxinyu commented Mar 22, 2016

同问!

@wangguofeng-live
Copy link

闪动的问题应该是 push过程中对UIWebView调用loadRequest导致的
目前我这边的解决办法

viewDidLoad 中的
[self.webView loadRequest:[NSURLRequest requestWithURL:self.url]];
移动到viewDidAppear中,延迟加载的方式来减少卡顿的不良体验
- (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; [self.webView loadRequest:[NSURLRequest requestWithURL:self.url]]; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants