Remote Web Inspector

We recently stumbled across a blog post mentioning a way to enable a remote interface to a web inspector that is hidden inside the WebKit on iOS 5.

Here’s how it’s done. In your Application Delegate add the following code:

+ (void)initialize;
{
    [NSClassFromString(@"WebView") performSelector:@selector(_enableRemoteInspector)];
}

With this you can direct your browser to http://localhost:9999 to open the web inspector.

Have fun!