Added fix for future UIWebView implementation and UIViewAutoresizingFlexibleHeight to _progressBarView autoresizingMask #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added fix for future UIWebView implementation. This has no effect at the moment because the NJKWebViewProgress does implement all UIWebView delegate methods. say there was a new method which NJKWebViewProgress did not implement. The UIWebView first checks to see if the NJKWebViewProgress implements this method and fails (it has no idea that the a _webViewProxyDelegate object exists!). So it won't forward the method to its _webViewProxyDelegate because we never check to see if the _webViewProxyDelegate responds to the selector. Fix is to override - (BOOL)respondsToSelector:(SEL)aSelector in NJKWebViewProgress and check if _webViewProxyDelegate respondsToSelector:aSelector .
Added UIViewAutoresizingFlexibleHeight to _progressBarView autoresizingMask. This ensures that it resizes with its NJKWebViewProgressView containerView. (When using constraints based layout the frame for NJKWebViewProgressView may initially be CGRectZero and the correct frame may be set afterwards, but the height of the of the _progressBarView would still be zero therefore invisible.)