diff --git a/README.md b/README.md index 3f3967b..26ed518 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,7 @@ instance, or the system browser. - __presentationstyle__: Set to `pagesheet`, `formsheet` or `fullscreen` to set the [presentation style](http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalPresentationStyle) (defaults to `fullscreen`). - __transitionstyle__: Set to `fliphorizontal`, `crossdissolve` or `coververtical` to set the [transition style](http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalTransitionStyle) (defaults to `coververtical`). - __toolbarposition__: Set to `top` or `bottom` (default is `bottom`). Causes the toolbar to be at the top or bottom of the window. + - __hidespinner__: Set to `yes` or `no` to change the visibility of the loading indicator (defaults to `no`). Windows supports these additional options: diff --git a/src/ios/CDVInAppBrowser.h b/src/ios/CDVInAppBrowser.h index cb36d34..25fae3f 100644 --- a/src/ios/CDVInAppBrowser.h +++ b/src/ios/CDVInAppBrowser.h @@ -57,6 +57,7 @@ @property (nonatomic, copy) NSString* navigationbuttoncolor; @property (nonatomic, assign) BOOL clearcache; @property (nonatomic, assign) BOOL clearsessioncache; +@property (nonatomic, assign) BOOL hidespinner; @property (nonatomic, copy) NSString* presentationstyle; @property (nonatomic, copy) NSString* transitionstyle; diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m index 8847b44..c65e3e1 100644 --- a/src/ios/CDVInAppBrowser.m +++ b/src/ios/CDVInAppBrowser.m @@ -917,7 +917,10 @@ self.backButton.enabled = theWebView.canGoBack; self.forwardButton.enabled = theWebView.canGoForward; - [self.spinner startAnimating]; + NSLog(_browserOptions.hidespinner ? @"Yes" : @"No"); + if(!_browserOptions.hidespinner) { + [self.spinner startAnimating]; + } return [self.navigationDelegate webViewDidStartLoad:theWebView]; } @@ -1017,6 +1020,7 @@ self.toolbarposition = kInAppBrowserToolbarBarPositionBottom; self.clearcache = NO; self.clearsessioncache = NO; + self.hidespinner = NO; self.enableviewportscale = NO; self.mediaplaybackrequiresuseraction = NO;