Created
October 2, 2013 23:31
-
-
Save andrewschreiber/6802101 to your computer and use it in GitHub Desktop.
secondviewcontroller.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface RASecondViewController : UIViewController | |
@property (retain, nonatomic) IBOutlet UIDatePicker *datePicker; | |
@property (strong,nonatomic) IBOutlet UIButton *firstPictureButton; | |
@property (strong,nonatomic) IBOutlet UIButton *secondPictureButton; | |
@property (strong,nonatomic) IBOutlet UIButton *setRallyButton; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "RASecondViewController.h" | |
#import "RARally.h" | |
@interface RASecondViewController () | |
@end | |
@implementation RASecondViewController | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
// Do any additional setup after loading the view, typically from a nib. | |
} | |
- (IBAction)setRally:(UIButton *)sender | |
{ | |
RARally *newRally = [[RARally alloc]init]; | |
NSLog(@"test"); | |
newRally.rallyTime= _datePicker.date | |
NSLog(@"Its saying the date is: %@", _datePicker.date); | |
; | |
} | |
- (void)didReceiveMemoryWarning | |
{ | |
[super didReceiveMemoryWarning]; | |
// Dispose of any resources that can be recreated. | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment