CB-8659 - Update InAppBrowser to support both cordova-ios 4.0.x and 3.x (closes #93)

This commit is contained in:
Shazron Abdullah
2015-03-13 20:29:55 -07:00
committed by Shazron Abdullah
parent 4c8f58d87c
commit ed1227f61a
2 changed files with 28 additions and 9 deletions
+12 -1
View File
@@ -20,7 +20,12 @@
#import <Cordova/CDVPlugin.h>
#import <Cordova/CDVInvokedUrlCommand.h>
#import <Cordova/CDVScreenOrientationDelegate.h>
#import <Cordova/CDVWebViewDelegate.h>
#ifdef __CORDOVA_4_0_0
#import <Cordova/CDVUIWebViewDelegate.h>
#else
#import <Cordova/CDVWebViewDelegate.h>
#endif
@class CDVInAppBrowserViewController;
@@ -69,7 +74,13 @@
NSString* _prevUserAgent;
NSInteger _userAgentLockToken;
CDVInAppBrowserOptions *_browserOptions;
#ifdef __CORDOVA_4_0_0
CDVUIWebViewDelegate* _webViewDelegate;
#else
CDVWebViewDelegate* _webViewDelegate;
#endif
}
@property (nonatomic, strong) IBOutlet UIWebView* webView;