mirror of
https://github.com/zhigang1992/RETableViewManager.git
synced 2026-05-19 04:17:06 +08:00
Explicitly state readonly and readwrite properties
This commit is contained in:
@@ -30,6 +30,6 @@
|
||||
UISwitch *_switch;
|
||||
}
|
||||
|
||||
@property (strong, nonatomic) REBoolItem *item;
|
||||
@property (strong, readwrite, nonatomic) REBoolItem *item;
|
||||
|
||||
@end
|
||||
|
||||
@@ -33,14 +33,14 @@
|
||||
UIImageView *_currentImageView;
|
||||
}
|
||||
|
||||
@property (strong, nonatomic) RECreditCardItem *item;
|
||||
@property (strong, nonatomic) REFormattedNumberField *creditCardField;
|
||||
@property (strong, nonatomic) REFormattedNumberField *expirationDateField;
|
||||
@property (strong, nonatomic) REFormattedNumberField *cvvField;
|
||||
@property (assign, nonatomic) CGSize textFieldPositionOffset;
|
||||
@property (strong, nonatomic) UIImageView *creditCardBackImageView;
|
||||
@property (strong, nonatomic) UIImageView *creditCardImageView;
|
||||
@property (strong, nonatomic) UIImageView *creditCardStackImageView;
|
||||
@property (strong, readwrite, nonatomic) RECreditCardItem *item;
|
||||
@property (assign, readwrite, nonatomic) CGSize textFieldPositionOffset;
|
||||
@property (strong, readonly, nonatomic) UIImageView *creditCardBackImageView;
|
||||
@property (strong, readonly, nonatomic) UIImageView *creditCardImageView;
|
||||
@property (strong, readonly, nonatomic) UIImageView *creditCardStackImageView;
|
||||
@property (strong, readonly, nonatomic) REFormattedNumberField *creditCardField;
|
||||
@property (strong, readonly, nonatomic) REFormattedNumberField *expirationDateField;
|
||||
@property (strong, readonly, nonatomic) REFormattedNumberField *cvvField;
|
||||
|
||||
|
||||
@end
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
|
||||
@interface RETableViewNumberCell : RETableViewCell <UITextFieldDelegate>
|
||||
|
||||
@property (strong, nonatomic) RENumberItem *item;
|
||||
@property (strong, nonatomic) REFormattedNumberField *textField;
|
||||
@property (assign, nonatomic) CGSize textFieldPositionOffset;
|
||||
@property (strong, readwrite, nonatomic) RENumberItem *item;
|
||||
@property (strong, readwrite, nonatomic) REFormattedNumberField *textField;
|
||||
@property (assign, readwrite, nonatomic) CGSize textFieldPositionOffset;
|
||||
|
||||
@end
|
||||
|
||||
@@ -28,6 +28,6 @@
|
||||
|
||||
@interface RETableViewStringCell : RETableViewCell
|
||||
|
||||
@property (strong, nonatomic) NSString *item;
|
||||
@property (strong, readwrite, nonatomic) NSString *item;
|
||||
|
||||
@end
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
|
||||
@interface RETableViewTextCell : RETableViewCell <UITextFieldDelegate>
|
||||
|
||||
@property (strong, nonatomic) RETextItem *item;
|
||||
@property (strong, nonatomic) UITextField *textField;
|
||||
@property (assign, nonatomic) CGSize textFieldPositionOffset;
|
||||
@property (strong, readwrite, nonatomic) RETextItem *item;
|
||||
@property (strong, readonly, nonatomic) UITextField *textField;
|
||||
@property (assign, readwrite, nonatomic) CGSize textFieldPositionOffset;
|
||||
|
||||
@end
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
@interface REBoolItem : RETableViewItem
|
||||
|
||||
@property (assign, nonatomic) BOOL value;
|
||||
@property (assign, readwrite, nonatomic) BOOL value;
|
||||
|
||||
+ (id)itemWithTitle:(NSString *)title value:(BOOL)value actionBlock:(void(^)(REBoolItem *item))actionBlock;
|
||||
+ (id)itemWithTitle:(NSString *)title value:(BOOL)value;
|
||||
|
||||
@@ -29,13 +29,13 @@
|
||||
|
||||
// Data and values
|
||||
//
|
||||
@property (copy, nonatomic) NSString *number;
|
||||
@property (copy, nonatomic) NSString *expirationDate;
|
||||
@property (copy, nonatomic) NSString *cvv;
|
||||
@property (copy, readwrite, nonatomic) NSString *number;
|
||||
@property (copy, readwrite, nonatomic) NSString *expirationDate;
|
||||
@property (copy, readwrite, nonatomic) NSString *cvv;
|
||||
|
||||
// Keyboard
|
||||
//
|
||||
@property (nonatomic) UIKeyboardAppearance keyboardAppearance; // default is UIKeyboardAppearanceDefault
|
||||
@property (assign, readwrite, nonatomic) UIKeyboardAppearance keyboardAppearance; // default is UIKeyboardAppearanceDefault
|
||||
|
||||
+ (id)itemWithNumber:(NSString *)number expirationDate:(NSString *)expirationDate cvv:(NSString *)cvv;
|
||||
- (id)initWithNumber:(NSString *)number expirationDate:(NSString *)expirationDate cvv:(NSString *)cvv;
|
||||
|
||||
@@ -29,13 +29,13 @@
|
||||
|
||||
// Data and values
|
||||
//
|
||||
@property (copy, nonatomic) NSString *format;
|
||||
@property (copy, nonatomic) NSString *value;
|
||||
@property (copy, nonatomic) NSString *placeholder;
|
||||
@property (copy, readwrite, nonatomic) NSString *format;
|
||||
@property (copy, readwrite, nonatomic) NSString *value;
|
||||
@property (copy, readwrite, nonatomic) NSString *placeholder;
|
||||
|
||||
// Keyboard
|
||||
//
|
||||
@property (nonatomic) UIKeyboardAppearance keyboardAppearance; // default is UIKeyboardAppearanceDefault
|
||||
@property (assign, readwrite, nonatomic) UIKeyboardAppearance keyboardAppearance; // default is UIKeyboardAppearanceDefault
|
||||
|
||||
+ (id)itemWithTitle:(NSString *)title value:(NSString *)value placeholder:(NSString *)placeholder format:(NSString *)format;
|
||||
- (id)initWithTitle:(NSString *)title value:(NSString *)value placeholder:(NSString *)placeholder format:(NSString *)format;
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
|
||||
@interface REStringItem : RETableViewItem
|
||||
|
||||
@property (assign, nonatomic) UITableViewCellAccessoryType accessoryType;
|
||||
@property (strong, nonatomic) UIView *accessoryView;
|
||||
@property (assign, readwrite, nonatomic) UITableViewCellAccessoryType accessoryType;
|
||||
@property (strong, readwrite, nonatomic) UIView *accessoryView;
|
||||
|
||||
+ (id)itemWithTitle:(NSString *)title accessoryType:(UITableViewCellAccessoryType)accessoryType actionBlock:(void(^)(RETableViewItem *item))actionBlock;
|
||||
+ (id)itemWithTitle:(NSString *)title accessoryType:(UITableViewCellAccessoryType)accessoryType accessoryView:(UIView *)accessoryView actionBlock:(void(^)(RETableViewItem *item))actionBlock;
|
||||
|
||||
@@ -29,20 +29,20 @@
|
||||
|
||||
// Data and values
|
||||
//
|
||||
@property (copy, nonatomic) NSString *value;
|
||||
@property (copy, nonatomic) NSString *placeholder;
|
||||
@property (copy, readwrite, nonatomic) NSString *value;
|
||||
@property (copy, readwrite, nonatomic) NSString *placeholder;
|
||||
|
||||
|
||||
// Keyboard
|
||||
//
|
||||
@property (assign, nonatomic) UITextAutocapitalizationType autocapitalizationType; // default is UITextAutocapitalizationTypeSentences
|
||||
@property (assign, nonatomic) UITextAutocorrectionType autocorrectionType; // default is UITextAutocorrectionTypeDefault
|
||||
@property (assign, nonatomic) UITextSpellCheckingType spellCheckingType NS_AVAILABLE_IOS(5_0); // default is UITextSpellCheckingTypeDefault;
|
||||
@property (assign, nonatomic) UIKeyboardType keyboardType; // default is UIKeyboardTypeDefault
|
||||
@property (assign, nonatomic) UIKeyboardAppearance keyboardAppearance; // default is UIKeyboardAppearanceDefault
|
||||
@property (assign, assign, nonatomic) UIReturnKeyType returnKeyType; // default is UIReturnKeyDefault (See note under UIReturnKeyType enum)
|
||||
@property (assign, nonatomic) BOOL enablesReturnKeyAutomatically; // default is NO (when YES, will automatically disable return key when text widget has zero-length contents, and will automatically enable when text widget has non-zero-length contents)
|
||||
@property (assign, nonatomic) BOOL secureTextEntry; // default is NO
|
||||
@property (assign, readwrite, nonatomic) UITextAutocapitalizationType autocapitalizationType; // default is UITextAutocapitalizationTypeSentences
|
||||
@property (assign, readwrite, nonatomic) UITextAutocorrectionType autocorrectionType; // default is UITextAutocorrectionTypeDefault
|
||||
@property (assign, readwrite, nonatomic) UITextSpellCheckingType spellCheckingType NS_AVAILABLE_IOS(5_0); // default is UITextSpellCheckingTypeDefault;
|
||||
@property (assign, readwrite, nonatomic) UIKeyboardType keyboardType; // default is UIKeyboardTypeDefault
|
||||
@property (assign, readwrite, nonatomic) UIKeyboardAppearance keyboardAppearance; // default is UIKeyboardAppearanceDefault
|
||||
@property (assign, readwrite, nonatomic) UIReturnKeyType returnKeyType; // default is UIReturnKeyDefault (See note under UIReturnKeyType enum)
|
||||
@property (assign, readwrite, nonatomic) BOOL enablesReturnKeyAutomatically; // default is NO (when YES, will automatically disable return key when text widget has zero-length contents, and will automatically enable when text widget has non-zero-length contents)
|
||||
@property (assign, readwrite, nonatomic) BOOL secureTextEntry; // default is NO
|
||||
|
||||
+ (id)itemWithTitle:(NSString *)title value:(NSString *)value;
|
||||
+ (id)itemWithTitle:(NSString *)title value:(NSString *)value placeholder:(NSString *)placeholder;
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
|
||||
@interface REActionBar : UIToolbar
|
||||
|
||||
@property (strong, nonatomic) UISegmentedControl *navigationControl;
|
||||
@property (weak, nonatomic) id<REActionBarDelegate> actionBarDelegate;
|
||||
@property (strong, readonly, nonatomic) UISegmentedControl *navigationControl;
|
||||
@property (weak, readwrite, nonatomic) id<REActionBarDelegate> actionBarDelegate;
|
||||
|
||||
- (id)initWithDelegate:(id)delegate;
|
||||
|
||||
|
||||
@@ -31,14 +31,14 @@
|
||||
|
||||
@interface RETableViewCell : UITableViewCell <REActionBarDelegate>
|
||||
|
||||
@property (strong, nonatomic) UIImageView *backgroundImageView;
|
||||
@property (assign, nonatomic) NSInteger row;
|
||||
@property (assign, nonatomic) NSInteger sectionIndex;
|
||||
@property (weak, nonatomic) UITableView *parentTableView;
|
||||
@property (weak, nonatomic) RETableViewManager *tableViewManager;
|
||||
@property (weak, nonatomic) RETableViewSection *section;
|
||||
@property (strong, nonatomic) NSObject *item;
|
||||
@property (strong, nonatomic) REActionBar *actionBar;
|
||||
@property (strong, readonly, nonatomic) UIImageView *backgroundImageView;
|
||||
@property (assign, readwrite, nonatomic) NSInteger row;
|
||||
@property (assign, readwrite, nonatomic) NSInteger sectionIndex;
|
||||
@property (weak, readwrite, nonatomic) UITableView *parentTableView;
|
||||
@property (weak, readwrite, nonatomic) RETableViewManager *tableViewManager;
|
||||
@property (weak, readwrite, nonatomic) RETableViewSection *section;
|
||||
@property (strong, readwrite, nonatomic) NSObject *item;
|
||||
@property (strong, readwrite, nonatomic) REActionBar *actionBar;
|
||||
|
||||
+ (CGFloat)heightWithItem:(NSObject *)item tableViewManager:(RETableViewManager *)tableViewManager;
|
||||
|
||||
|
||||
@@ -36,9 +36,9 @@ typedef enum _RETableViewCellType {
|
||||
NSMutableDictionary *_backgroundImages;
|
||||
}
|
||||
|
||||
@property (strong, nonatomic) UIFont *textFieldFont;
|
||||
@property (assign, nonatomic) CGSize textFieldPositionOffset;
|
||||
@property (assign, nonatomic) CGFloat cellHeight;
|
||||
@property (strong, readwrite, nonatomic) UIFont *textFieldFont;
|
||||
@property (assign, readwrite, nonatomic) CGSize textFieldPositionOffset;
|
||||
@property (assign, readwrite, nonatomic) CGFloat cellHeight;
|
||||
|
||||
- (UIImage *)backgroundImageForCellType:(RETableViewCellType)cellType;
|
||||
- (void)setBackgroundImage:(UIImage *)image forCellType:(RETableViewCellType)cellType;
|
||||
|
||||
Reference in New Issue
Block a user