forked from card-io/card.io-iOS-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCardIOMultipleFieldTableViewCell.h
29 lines (23 loc) · 1.1 KB
/
CardIOMultipleFieldTableViewCell.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
//
// CardIOMultipleFieldTableViewCell.h
// See the file "LICENSE.md" for the full license governing this code.
//
#import <UIKit/UIKit.h>
@class CardIOMultipleFieldContentView;
@interface CardIOMultipleFieldTableViewCell : UITableViewCell<UITableViewDelegate, UITableViewDataSource> {
@private
CardIOMultipleFieldContentView *content;
Class textFieldClass;
}
//@property(nonatomic, retain, readwrite) NSArray *textFieldDelegates;
@property(nonatomic, assign, readwrite) NSUInteger numberOfFields; // should be a reasonable number ... 1-3 range.
@property(nonatomic, strong, readonly) NSArray *textFields;
@property(nonatomic, strong, readonly) NSMutableArray *labels;
@property(nonatomic, assign, readwrite) CGFloat labelWidth;
@property(nonatomic, assign, readwrite) Class textFieldClass;
@property(nonatomic, assign, readwrite) BOOL hiddenLabels;
@property(nonatomic, assign, readwrite) NSTextAlignment textAlignment;
- (BOOL)textFitsInMultiFieldForLabel:(NSString *)labelText
forPlaceholder:(NSString *)placeholderText
forFieldWidth:(CGFloat)fieldWidth;
@end