-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPSViewController.h
39 lines (31 loc) · 1.09 KB
/
PSViewController.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
38
39
//
// PSViewController.h
// PianoScribe
//
// Created by Wenley Tong on 11/4/13.
// Copyright (c) 2013 WenleyTong. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PSViewController : UIViewController <UIPickerViewDataSource,
UIPickerViewDelegate,
UITextFieldDelegate>
{
// Constants
@private NSString * instrumentsDirectory;
@private UIPickerView * picker;
@private UITextField * instrumentName;
@private NSArray * instrumentDirectories;
@private NSString * currentInstrumentPicked;
}
@property (retain) IBOutlet UIPickerView * picker;
@property (retain) IBOutlet UITextField * instrumentName;
@property NSString * instrumentsDirectory;
@property NSArray * instrumentDirectories;
@property NSString * currentInstrumentPicked;
// Receive UI messages
- (IBAction) initiateLearning:(UIButton *)sender;
- (IBAction) useExistingInstrument:(UIButton *)sender;
// Transition to other view
- (void) useInstrument:(NSString *)pathToInstrumentDirectory;
- (void) loadInstruments;
@end