diff --git a/RETableViewManager/Cells/RETableViewBoolCell.h b/RETableViewManager/Cells/RETableViewBoolCell.h index 7094e33..87ba3b5 100644 --- a/RETableViewManager/Cells/RETableViewBoolCell.h +++ b/RETableViewManager/Cells/RETableViewBoolCell.h @@ -30,6 +30,6 @@ UISwitch *_switch; } -@property (strong, nonatomic) REBoolItem *item; +@property (strong, readwrite, nonatomic) REBoolItem *item; @end diff --git a/RETableViewManager/Cells/RETableViewCreditCardCell.h b/RETableViewManager/Cells/RETableViewCreditCardCell.h index f1759b9..0ebebd2 100644 --- a/RETableViewManager/Cells/RETableViewCreditCardCell.h +++ b/RETableViewManager/Cells/RETableViewCreditCardCell.h @@ -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 diff --git a/RETableViewManager/Cells/RETableViewNumberCell.h b/RETableViewManager/Cells/RETableViewNumberCell.h index 9d0d812..24451df 100644 --- a/RETableViewManager/Cells/RETableViewNumberCell.h +++ b/RETableViewManager/Cells/RETableViewNumberCell.h @@ -29,8 +29,8 @@ @interface RETableViewNumberCell : RETableViewCell -@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 diff --git a/RETableViewManager/Cells/RETableViewStringCell.h b/RETableViewManager/Cells/RETableViewStringCell.h index fc8c07f..616eabd 100644 --- a/RETableViewManager/Cells/RETableViewStringCell.h +++ b/RETableViewManager/Cells/RETableViewStringCell.h @@ -28,6 +28,6 @@ @interface RETableViewStringCell : RETableViewCell -@property (strong, nonatomic) NSString *item; +@property (strong, readwrite, nonatomic) NSString *item; @end diff --git a/RETableViewManager/Cells/RETableViewTextCell.h b/RETableViewManager/Cells/RETableViewTextCell.h index c9c39b9..98d2e4a 100644 --- a/RETableViewManager/Cells/RETableViewTextCell.h +++ b/RETableViewManager/Cells/RETableViewTextCell.h @@ -28,8 +28,8 @@ @interface RETableViewTextCell : RETableViewCell -@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 diff --git a/RETableViewManager/Items/REBoolItem.h b/RETableViewManager/Items/REBoolItem.h index 85537e0..69450ae 100644 --- a/RETableViewManager/Items/REBoolItem.h +++ b/RETableViewManager/Items/REBoolItem.h @@ -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; diff --git a/RETableViewManager/Items/RECreditCardItem.h b/RETableViewManager/Items/RECreditCardItem.h index 627e446..fa1903c 100644 --- a/RETableViewManager/Items/RECreditCardItem.h +++ b/RETableViewManager/Items/RECreditCardItem.h @@ -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; diff --git a/RETableViewManager/Items/RENumberItem.h b/RETableViewManager/Items/RENumberItem.h index 17e37e1..c9f5847 100644 --- a/RETableViewManager/Items/RENumberItem.h +++ b/RETableViewManager/Items/RENumberItem.h @@ -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; diff --git a/RETableViewManager/Items/REStringItem.h b/RETableViewManager/Items/REStringItem.h index 54d74d6..3db0495 100644 --- a/RETableViewManager/Items/REStringItem.h +++ b/RETableViewManager/Items/REStringItem.h @@ -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; diff --git a/RETableViewManager/Items/RETextItem.h b/RETableViewManager/Items/RETextItem.h index 8af78b7..7b4c605 100644 --- a/RETableViewManager/Items/RETextItem.h +++ b/RETableViewManager/Items/RETextItem.h @@ -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; diff --git a/RETableViewManager/REActionBar.h b/RETableViewManager/REActionBar.h index 71ce0fa..ba1ea6a 100644 --- a/RETableViewManager/REActionBar.h +++ b/RETableViewManager/REActionBar.h @@ -29,8 +29,8 @@ @interface REActionBar : UIToolbar -@property (strong, nonatomic) UISegmentedControl *navigationControl; -@property (weak, nonatomic) id actionBarDelegate; +@property (strong, readonly, nonatomic) UISegmentedControl *navigationControl; +@property (weak, readwrite, nonatomic) id actionBarDelegate; - (id)initWithDelegate:(id)delegate; diff --git a/RETableViewManager/RETableViewCell.h b/RETableViewManager/RETableViewCell.h index 6fe590f..1cd6434 100644 --- a/RETableViewManager/RETableViewCell.h +++ b/RETableViewManager/RETableViewCell.h @@ -31,14 +31,14 @@ @interface RETableViewCell : UITableViewCell -@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; diff --git a/RETableViewManager/RETableViewCellStyle.h b/RETableViewManager/RETableViewCellStyle.h index 7e3f67b..c06b98e 100644 --- a/RETableViewManager/RETableViewCellStyle.h +++ b/RETableViewManager/RETableViewCellStyle.h @@ -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;