-
Notifications
You must be signed in to change notification settings - Fork 0
/
BaseViewController.h
37 lines (29 loc) · 1 KB
/
BaseViewController.h
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
//
// BaseViewController.h
// BWSimulatorOS
//
// Created by Carson Chow on 1/2/13.
// Copyright (c) 2013 NIDDK, NIH. All rights reserved.
//
#import <UIKit/UIKit.h>
@class Person;
@interface BaseViewController : UIViewController <UITextFieldDelegate>
{
__weak IBOutlet UITextField *ageField;
__weak IBOutlet UILabel *palField;
__weak IBOutlet UITextField *heightField;
__weak IBOutlet UILabel *intakeField;
__weak IBOutlet UITextField *weightField;
__weak IBOutlet UISegmentedControl *sexSwitch;
__weak IBOutlet UISegmentedControl *heightUnitSwitch;
__weak IBOutlet UISegmentedControl *intakeUnitSwitch;
__weak IBOutlet UISegmentedControl *weightUnitSwitch;
}
@property (nonatomic, strong) Person *person;
- (void) animateTextField: (UITextField*) textField: (BOOL) up;
- (IBAction)changeSex:(id)sender;
- (IBAction)changeIntakeUnit:(id)sender;
- (IBAction)changeWeightUnit:(id)sender;
- (IBAction)changeHeightUnit:(id)sender;
- (IBAction)showEstimatePAL:(id)sender;
@end