Skip to content

Instantly share code, notes, and snippets.

@andrewschreiber
Created October 2, 2013 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewschreiber/6802101 to your computer and use it in GitHub Desktop.
Save andrewschreiber/6802101 to your computer and use it in GitHub Desktop.
secondviewcontroller.h
#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
#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