diff options
| author | Teddy Wing | 2012-09-29 16:15:01 -0400 |
|---|---|---|
| committer | Teddy Wing | 2012-09-29 16:15:01 -0400 |
| commit | 033f9053ada0a7f2a9ef7e6652746cd3cbb8f300 (patch) | |
| tree | ee0a8c2127d189098e18e0078418359d40e41759 /Classes/RootViewController.m | |
| parent | d02256dc49356e6dc1769cc0fb4737a7f013cbed (diff) | |
| download | babblr-iOS-033f9053ada0a7f2a9ef7e6652746cd3cbb8f300.tar.bz2 | |
Integrated multi-line SMS-style text box for chat pane. Added a tableView for chat messages.
Diffstat (limited to 'Classes/RootViewController.m')
| -rw-r--r-- | Classes/RootViewController.m | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Classes/RootViewController.m b/Classes/RootViewController.m index 053242c..f647a5e 100644 --- a/Classes/RootViewController.m +++ b/Classes/RootViewController.m @@ -28,7 +28,7 @@ - (void)viewDidLoad { [super viewDidLoad]; - [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://google-developers.appspot.com/maps/documentation/javascript/examples/map-simple"]]]; + [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://google-developers.appspot.com/maps/documentation/javascript/examples/event-closure"]]]; } @@ -60,4 +60,16 @@ } +# pragma mark UIWebViewDelegate methods + +- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { + if (navigationType == UIWebViewNavigationTypeLinkClicked) { + // Flip and open chat view + NSLog(@"UIWebView item clicked"); + } + + return YES; +} + + @end |
