From d02256dc49356e6dc1769cc0fb4737a7f013cbed Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 29 Sep 2012 14:35:29 -0400 Subject: Got RootViewController to show a UIWebView containing the sample Google Maps API site. --- Classes/RootViewController.m | 10 +++--- Classes/RootViewController.xib | 75 ++++++++++++++++++++---------------------- 2 files changed, 41 insertions(+), 44 deletions(-) (limited to 'Classes') diff --git a/Classes/RootViewController.m b/Classes/RootViewController.m index 47124a2..053242c 100644 --- a/Classes/RootViewController.m +++ b/Classes/RootViewController.m @@ -13,22 +13,24 @@ @synthesize webView = _webView; - +/* // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad. - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) { - [webView loadHTMLString:@"https://google-developers.appspot.com/maps/documentation/javascript/examples/map-simple" baseURL:[NSURL URLWithString:@""]]; + } return self; } +*/ -/* // Implement viewDidLoad to do additional setup after loading the view, typically from a nib. - (void)viewDidLoad { [super viewDidLoad]; + + [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://google-developers.appspot.com/maps/documentation/javascript/examples/map-simple"]]]; } -*/ + /* // Override to allow orientations other than the default portrait orientation. diff --git a/Classes/RootViewController.xib b/Classes/RootViewController.xib index bc3b3bb..98173d0 100644 --- a/Classes/RootViewController.xib +++ b/Classes/RootViewController.xib @@ -12,7 +12,7 @@ YES - + YES @@ -42,7 +42,7 @@ 274 YES - + 274 {320, 460} @@ -55,25 +55,6 @@ 1 YES - - - 292 - {{96, 89}, {42, 21}} - - NO - YES - 7 - NO - IBCocoaTouchFramework - Label - - 1 - MCAwIDAAA - - - 1 - 10 - {320, 460} @@ -91,13 +72,21 @@ YES + + + webView + + + + 9 + view - 3 + 10 @@ -114,8 +103,7 @@ YES - - + @@ -132,10 +120,10 @@ 4 - + YES - + 292 {{4.94066e-324, 6.63125e-316}, {2.28523e-314, 6.95324e-310}} @@ -145,7 +133,10 @@ NO IBCocoaTouchFramework Label - + + 1 + MCAwIDAAA + 1 10 @@ -155,13 +146,8 @@ 5 - - - - - 6 - - + + @@ -175,14 +161,12 @@ 1.IBPluginDependency 4.IBPluginDependency 5.IBPluginDependency - 6.IBPluginDependency YES RootViewController UIResponder - {{545, 586}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin + {{689, 571}, {320, 480}} com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin @@ -204,7 +188,7 @@ - 6 + 10 @@ -212,6 +196,17 @@ RootViewController UIViewController + + webView + UIWebView + + + webView + + webView + UIWebView + + IBProjectSource Classes/RootViewController.h @@ -306,7 +301,7 @@ NSObject - + IBFrameworkSource UIKit.framework/Headers/UIResponder.h @@ -322,7 +317,7 @@ UIResponder NSObject - + UISearchBar -- cgit v1.2.3