File tree 4 files changed +10
-0
lines changed
4 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 37
37
@property (nonatomic ) BOOL customCells;
38
38
@property (nonatomic ) BOOL editing;
39
39
@property (nonatomic ) BOOL moveWithinSectionOnly;
40
+ @property (nonatomic ) BOOL allowsSelectionDuringEditing;
40
41
@property (nonatomic , assign ) UIEdgeInsets contentInset;
41
42
@property (nonatomic , assign ) CGPoint contentOffset;
42
43
@property (nonatomic , assign ) UIEdgeInsets scrollIndicatorInsets;
Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ - (void)setEditing:(BOOL)editing {
41
41
[self .tableView setEditing: editing animated: YES ];
42
42
}
43
43
44
+ - (void )setAllowsSelectionDuringEditing : (BOOL )allowsSelectionDuringEditing {
45
+ _allowsSelectionDuringEditing = allowsSelectionDuringEditing;
46
+
47
+ [self .tableView setAllowsSelectionDuringEditing: allowsSelectionDuringEditing];
48
+ }
49
+
44
50
- (void )setSeparatorColor : (UIColor *)separatorColor {
45
51
_separatorColor = separatorColor;
46
52
@@ -210,6 +216,7 @@ - (void)createTableView {
210
216
_tableView.delegate = self;
211
217
_tableView.tableFooterView = [[UIView alloc ] initWithFrame: CGRectZero ];
212
218
_tableView.allowsMultipleSelectionDuringEditing = NO ;
219
+ _tableView.allowsSelectionDuringEditing = self.allowsSelectionDuringEditing ;
213
220
_tableView.contentInset = self.contentInset ;
214
221
_tableView.contentOffset = self.contentOffset ;
215
222
_tableView.scrollIndicatorInsets = self.scrollIndicatorInsets ;
Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ class TableView extends React.Component {
196
196
autoFocus : false ,
197
197
alwaysBounceVertical : true ,
198
198
scrollEnabled : true ,
199
+ allowsSelectionDuringEditing : false ,
199
200
sectionIndexTitlesEnabled : false ,
200
201
showsHorizontalScrollIndicator : true ,
201
202
showsVerticalScrollIndicator : true ,
Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ export interface TableViewProps {
232
232
tableViewCellEditingStyle ?: CellEditingStyle ;
233
233
separatorStyle ?: SeparatorStyle ;
234
234
editing ?: boolean ;
235
+ allowsSelectionDuringEditing ?: boolean ;
235
236
autoFocusAnimate ?: boolean ;
236
237
autoFocus ?: boolean ;
237
238
alwaysBounceVertical ?: boolean ;
You can’t perform that action at this time.
0 commit comments