samvermette/SVWebViewController — pull request #37 by d11wtq (2013-02-14 11:03:55+00:00)
Title: Allow overriding request loading logic in subclasses

We use SVWebViewController to access pages from our website that require authentication. In order to ensure the user is authenticated, we have to first make an API call before the page is loaded in the WebView.

We tried making the API call before loading SVWebViewController, but it adds perceived latency, so instead we decided to handle the authenticating API call at the point where the view is actually loaded.

This PR just defines `-loadURL:` which `-loadView` delegates to to do the actual loading. The default implementation remains unchanged, but it's possible to do some asynchronous work here in a subclass.