public
Description: Three20 is an Objective-C library for iPhone developers
Homepage: http://groups.google.com/group/three20/
Clone URL: git://github.com/facebook/three20.git
three20 / src / Three20 / TTPickerTextField.h
100644 42 lines (25 sloc) 1.063 kb
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
40
41
42
#import "Three20/TTSearchTextField.h"
 
@class TTPickerViewCell;
 
@interface TTPickerTextField : TTSearchTextField {
  NSMutableArray* _cellViews;
  TTPickerViewCell* _selectedCell;
  int _lineCount;
  CGPoint _cursorOrigin;
}
 
@property(nonatomic,readonly) NSArray* cellViews;
@property(nonatomic,readonly) NSArray* cells;
@property(nonatomic,assign) TTPickerViewCell* selectedCell;
@property(nonatomic,readonly) int lineCount;
 
- (void)addCellWithObject:(id)object;
 
- (void)removeCellWithObject:(id)object;
 
- (void)removeAllCells;
 
- (void)removeSelectedCell;
 
- (void)scrollToVisibleLine:(BOOL)animated;
 
- (void)scrollToEditingLine:(BOOL)animated;
 
@end
 
///////////////////////////////////////////////////////////////////////////////////////////////////
 
@protocol TTPickerTextFieldDelegate <TTSearchTextFieldDelegate>
 
- (void)textField:(TTPickerTextField*)textField didAddCellAtIndex:(NSInteger)index;
 
- (void)textField:(TTPickerTextField*)textField didRemoveCellAtIndex:(NSInteger)index;
 
- (void)textFieldDidResize:(TTPickerTextField*)textField;
 
@end