First commit - d6b8eb1c9739f5936d328605e8afa7698140d34b
-
Create a new project called Temperatures. Set the prefix to
TM
. -
Open
TMViewController.xib
and drag in 1. A UITextField 2. 2 UIButton's. The buttons should have the textF to C
andC to F
respectively. -
Create 3 properties in
TMViewController.h
like so:@property (weak, nonatomic) IBOutlet UITextField *temperatureTextField; @property (weak, nonatomic) IBOutlet UIButton *farenheightButton; @property (weak, nonatomic) IBOutlet UIButton *celsiusButton;
-
Connect those IBOutlets to their respective buttons in
TMViewController.xib
.