In iOS HTML5 WebGL is currently not supported in Safari or when writing an iOS application using the UIWebView component. However, a workaround exists as WebGL support is available for iAd applications. The trick is (1) to extend/re-define the interface of UIWebView, (2) create a WebGL enabled UIWebView in your ViewController and (3) assign the custom view to your view controller.
(1) extend/re-define the interface of WebUIView (necessary for iOS5.x)
@interface UIWebView()
- (void)_setWebGLEnabled:(BOOL)newValue; // workaround
@end
(2) create a WebGL enabled UIWebView in your ViewController
UIWebView* webView = [[UIWebView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
id webDocumentView = [webView performSelector:@selector(_browserView)];
id backingWebView = [webDocumentView performSelector:@selector(webView)];
[backingWebView _setWebGLEnabled:YES]; // workaround
[webView setDelegate:self];
(3) Assign current view to RenderView
[self setView:webView];
Source: Nathan de Vries (http://atnan.com/blog/2011/11/03/enabling-and-using-webgl-on-ios/)