diff options
Diffstat (limited to 'platform/ios/Classes/MuChoiceFieldController.h')
-rw-r--r-- | platform/ios/Classes/MuChoiceFieldController.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/platform/ios/Classes/MuChoiceFieldController.h b/platform/ios/Classes/MuChoiceFieldController.h new file mode 100644 index 00000000..d99f8cd5 --- /dev/null +++ b/platform/ios/Classes/MuChoiceFieldController.h @@ -0,0 +1,20 @@ +// +// MuChoiceFieldController.h +// MuPDF +// +// Copyright (c) 2013 Artifex Software, Inc. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@interface MuChoiceFieldController : UIViewController<UIPickerViewDataSource, UIPickerViewDelegate> +{ + void (^okayBlock)(NSArray *); + NSArray *choices; + int selected; +} +@property (retain, nonatomic) IBOutlet UIPickerView *picker; +- (id)initWithChoices:(NSArray *)choices okayAction:(void (^)(NSArray *))block; +- (IBAction)okayTapped:(id)sender; +- (IBAction)cancelTapped:(id)sender; +@end |