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

App crashes when the web browser is dismissed before finishing loading #3

Closed
damienrambout opened this issue Mar 17, 2014 · 1 comment

Comments

@damienrambout
Copy link

The app is crashing in KINWebBrowserViewController.m at line #373 (in method progressBarStopLoading) if the modal view controller is dismissed before the web content has finished loading.

Actually, the UIWebView still sends callbacks to its delegate even father the latter has been destroyed. This is because the delegate property of a UIWebView is in assign mode instead of weak, which does not nullify the delegate property automatically.
You should therefore set the delegate property to nil in the dealloc method of the KINWebBrowserViewController class.

Please post a Cocoapods update as soon as you can.

Cheers.

@dfmuir
Copy link
Owner

dfmuir commented Mar 25, 2014

I believe that this is resolved in 0.2.4 which is on its way to CocoaPods. Please let me know if you still find problems.

@dfmuir dfmuir closed this as completed Mar 25, 2014
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

2 participants