52 lines
1.2 KiB
Objective-C
52 lines
1.2 KiB
Objective-C
//
|
|
// TBDInputViewControllerData.m
|
|
// Salva lo scontrino
|
|
//
|
|
// Created by Luca Beretta on 16/07/12.
|
|
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import "TBDInputViewControllerData.h"
|
|
|
|
@interface TBDInputViewControllerData ()
|
|
|
|
@end
|
|
|
|
@implementation TBDInputViewControllerData
|
|
|
|
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
|
|
{
|
|
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
|
if (self) {
|
|
// Custom initialization
|
|
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)viewDidLoad
|
|
{
|
|
[super viewDidLoad];
|
|
// Do any additional setup after loading the view.
|
|
|
|
self.myDataPicker.date = [NSDate date];
|
|
[self.cancellaButton setTitle:NSLocalizedString(@"Annulla", @"")];
|
|
[self.confermaButton setTitle:NSLocalizedString(@"Seleziona", @"")];
|
|
}
|
|
|
|
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
|
|
{
|
|
return (interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) || (interfaceOrientation == UIInterfaceOrientationPortrait);
|
|
}
|
|
-(IBAction)chiudiView:(id)sender{
|
|
|
|
[self.delegate esci];
|
|
}
|
|
-(IBAction)inviaData:(id)sender{
|
|
|
|
[self.delegate dataSelezionata:self.myDataPicker.date withTextFild:self.testFild];
|
|
|
|
}
|
|
|
|
@end
|