#import "InputViewController.h"
#import "PickerView.h"
@implementation InputViewController
@synthesize scrollView;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
}
return self;
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
}
#pragma mark - View lifecycle
- (void)viewDidLoad
{
[super viewDidLoad];
self.scrollView.contentSize = CGSizeMake(640, self.scrollView.frame.size.height);
PickerView *glassPickerView = [[PickerView alloc] init];
[glassPickerView.view setFrame:CGRectMake(0, 298, 320, 162)];
[self.view addSubview:glassPickerView.view];
}
- (void)viewDidUnload
{
[self setScrollView:nil];
[super viewDidUnload];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
- (IBAction)chooseGlass:(id)sender {
[UIView animateWithDuration:0.5 animations:^{
}];
}
@end