File tree Expand file tree Collapse file tree 4 files changed +395
-45
lines changed Expand file tree Collapse file tree 4 files changed +395
-45
lines changed Original file line number Diff line number Diff line change
1
+ //
2
+ // PhoneGap ! ChildBrowserCommand
3
+ //
4
+ //
5
+ // Created by Jesse MacFadyen on 10-05-29.
6
+ // Copyright 2010 Nitobi. All rights reserved.
7
+ //
8
+
9
+ #import < Foundation/Foundation.h>
10
+ #import " PhoneGapCommand.h"
11
+
12
+
13
+ @interface ChildBrowserCommand : PhoneGapCommand {
14
+
15
+
16
+ }
17
+
18
+ - (void ) showWebPage : (NSMutableArray *)arguments withDict : (NSMutableDictionary *)options ;
19
+
20
+
21
+ @end
Original file line number Diff line number Diff line change
1
+ //
2
+
3
+ //
4
+ //
5
+ // Created by Jesse MacFadyen on 10-05-29.
6
+ // Copyright 2010 Nitobi. All rights reserved.
7
+ //
8
+
9
+ #import " ChildBrowserCommand.h"
10
+ #import " ChildBrowserViewController.h"
11
+
12
+
13
+ @implementation ChildBrowserCommand
14
+
15
+ - (void ) showWebPage : (NSMutableArray *)arguments withDict : (NSMutableDictionary *)options // args: url
16
+ {
17
+ ChildBrowserViewController* childBrowser = [ [ ChildBrowserViewController alloc ] initWithScale: FALSE ];
18
+ [ [ super appViewController ] presentModalViewController: childBrowser animated: YES ];
19
+
20
+ NSString *url = (NSString *) [arguments objectAtIndex: 0 ];
21
+ // stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
22
+ [childBrowser loadURL: url ];
23
+ [childBrowser release ];
24
+ }
25
+
26
+
27
+ @end
You can’t perform that action at this time.
0 commit comments