diff --git a/iphone/Maps/Classes/GuideViewController.h b/iphone/Maps/Classes/GuideViewController.h index 3251b59864..41e1e1f447 100644 --- a/iphone/Maps/Classes/GuideViewController.h +++ b/iphone/Maps/Classes/GuideViewController.h @@ -7,16 +7,12 @@ // #import +#import "../../Sloynik/Shared/SearchVC.h" -@class SearchVC; - -@interface GuideViewController : UIViewController +@interface GuideViewController : SearchVC { - SearchVC * searchVC; } -@property (nonatomic, retain) SearchVC * searchVC; - - (IBAction)OnMapClicked:(id)sender; @end diff --git a/iphone/Maps/Classes/GuideViewController.mm b/iphone/Maps/Classes/GuideViewController.mm index ad803c2c72..4a5505a45c 100644 --- a/iphone/Maps/Classes/GuideViewController.mm +++ b/iphone/Maps/Classes/GuideViewController.mm @@ -9,11 +9,9 @@ #import "GuideViewController.h" #import "MapsAppDelegate.h" #import "MapViewController.h" -#import "../../Sloynik/Shared/SearchVC.h" @implementation GuideViewController -@synthesize searchVC; - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { @@ -21,11 +19,6 @@ if (self) { // Custom initialization - self.searchVC = [[[SearchVC alloc] init] autorelease]; - CGRect frame = self.view.frame; - frame.size.height -= 44; - self.searchVC.initFrame = frame; - [self.view addSubview:searchVC.view]; } return self; } diff --git a/iphone/Maps/Classes/GuideViewController.xib b/iphone/Maps/Classes/GuideViewController.xib index bb437ad645..1d745e44e4 100644 --- a/iphone/Maps/Classes/GuideViewController.xib +++ b/iphone/Maps/Classes/GuideViewController.xib @@ -2,21 +2,23 @@ 1056 - 10J567 - 1305 + 10J869 + 1306 1038.35 - 462.00 + 461.00 com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 300 + 301 YES + IBProxyObject IBUIBarButtonItem IBUIToolbar + IBUISearchBar IBUISegmentedControl + IBUITableView IBUIView - IBProxyObject YES @@ -44,6 +46,25 @@ 274 YES + + + 274 + {{0, 44}, {320, 372}} + + + 3 + MQA + + YES + IBCocoaTouchFramework + YES + 1 + 0 + YES + 44 + 22 + 22 + 266 @@ -113,10 +134,23 @@ + + + 290 + {320, 44} + + + 3 + IBCocoaTouchFramework + + + IBCocoaTouchFramework + + {{0, 20}, {320, 460}} - + 3 MQA @@ -148,6 +182,22 @@ 21 + + + searchBar + + + + 23 + + + + resultsView + + + + 25 + @@ -175,6 +225,8 @@ YES + + View @@ -214,6 +266,16 @@ + + 22 + + + + + 24 + + + @@ -230,6 +292,8 @@ 15.IBPluginDependency 17.IBPluginDependency 17.IUISegmentedControlInspectorSelectedSegmentMetadataKey + 22.IBPluginDependency + 24.IBPluginDependency YES @@ -247,6 +311,8 @@ com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin @@ -261,7 +327,7 @@ - 21 + 25 0 @@ -272,6 +338,6 @@ YES 3 - 300 + 301