-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathViewController.m
More file actions
42 lines (34 loc) · 988 Bytes
/
ViewController.m
File metadata and controls
42 lines (34 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// ViewController.m
// GooglePlaceExampleProject
//
// Created by Samuel Kitono on 14/03/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
autoCompleteSearchBar.autoCompleteTableView.frame = CGRectMake(0, 44, 320, 460-44-216);
[self.view addSubview:autoCompleteSearchBar.autoCompleteTableView];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)viewDidUnload
{
[autoCompleteSearchBar release];
autoCompleteSearchBar = nil;
[super viewDidUnload];
// Release any retained subviews of the main view.
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}
- (void)dealloc {
[autoCompleteSearchBar release];
[super dealloc];
}
@end