The iOS InAppBrowser object has its own counter, which automatically adds to the web view.
However, since the spinner is created as a UIActivityIndicatorViewStyleWhite, and the background of the web view is white, you cannot see it.
So, I updated it like this:
self.spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
In addition, the x coordinate of the raster frame is outside the iPhone. To fix this, I updated the frame to:
self.spinner.frame = CGRectMake(self.view.frame.size.width / 2 - 10, self.view.frame.size.height/ 2 - 10, 20, 20);
This should center the spinner no matter what size of device you are using.
I tested this only in portrait mode.
( 3.4) , "" .