root/apps/iphone/my.tel/trunk/Classes/HATypePickerController.h
@
634
| Revision 634, 1.1 kB (checked in by henri, 3 years ago) |
|---|
| Rev | Line | |
|---|---|---|
| [633] | 1 | // |
| 2 | // HATypePickerController.h | |
| 3 | // VIP.tel | |
| 4 | // | |
| 5 | // Created by Henri Asseily on 1/11/10. | |
| 6 | // Copyright 2010 Telnic Ltd. All rights reserved. | |
| 7 | // | |
| 8 | // Simple type picker view controller to be used as a modal controller | |
| 9 | // It's delegate is must be both the delegate and the datasource of the UIPickerView | |
| 10 | ||
| 11 | #import <UIKit/UIKit.h> | |
| 12 | #import <QuartzCore/QuartzCore.h> | |
| 13 | ||
| 14 | @protocol HATypePickerViewDelegate <UIPickerViewDelegate, UIPickerViewDataSource> | |
| 15 | ||
| 16 | - (void)pickerView:(UIPickerView *)pickerView willCancelWithButton:(id)sender; | |
| 17 | - (void)pickerView:(UIPickerView *)pickerView willAcceptWithButton:(id)sender; | |
| 18 | ||
| 19 | @end | |
| 20 | ||
| 21 | ||
| 22 | @interface HATypePickerController : UIViewController { | |
| 23 | IBOutlet UIPickerView *picker; | |
| 24 | id <HATypePickerViewDelegate> delegate; | |
| 25 | } | |
| 26 | ||
| 27 | - (void)presentViewController; | |
| 28 | - (void)dismissViewController; | |
| [634] | 29 | - (void)selectRowWithString:(NSString *)aString inComponent:(NSInteger)aComponent animated:(BOOL)animated; |
| [633] | 30 | - (IBAction)didCancelPicker:(id)sender; |
| 31 | - (IBAction)didAcceptPicker:(id)sender; | |
| 32 | ||
| 33 | @property (nonatomic, retain) IBOutlet UIPickerView *picker; | |
| [634] | 34 | @property (nonatomic, assign) id <HATypePickerViewDelegate> delegate; |
| [633] | 35 | @end |
Note: See TracBrowser
for help on using the browser.








