iOS: fix loadMore's change may cause UITableView internal inconsistency,add reloadData action
This commit is contained in:
parent
e5a59dad69
commit
8e021133bb
@ -240,7 +240,11 @@ - (void)blendView:(UICollectionView *)view forPropName:(NSString *)name propValu
|
||||
} else if ([@"loadMoreView" isEqualToString:name]) {
|
||||
self.loadMoreViewId = prop;
|
||||
} else if ([@"loadMore" isEqualToString:name]) {
|
||||
self.loadMore = [prop boolValue];
|
||||
BOOL loadMore = [prop boolValue];
|
||||
if (loadMore != self.loadMore) {
|
||||
self.loadMore = loadMore;
|
||||
[self.view reloadData];
|
||||
}
|
||||
} else if ([@"onScroll" isEqualToString:name]) {
|
||||
self.onScrollFuncId = prop;
|
||||
} else if ([@"onScrollEnd" isEqualToString:name]) {
|
||||
|
@ -156,7 +156,11 @@ - (void)blendView:(UITableView *)view forPropName:(NSString *)name propValue:(id
|
||||
} else if ([@"loadMoreView" isEqualToString:name]) {
|
||||
self.loadMoreViewId = prop;
|
||||
} else if ([@"loadMore" isEqualToString:name]) {
|
||||
self.loadMore = [prop boolValue];
|
||||
BOOL loadMore = [prop boolValue];
|
||||
if (loadMore != self.loadMore) {
|
||||
self.loadMore = loadMore;
|
||||
[self.view reloadData];
|
||||
}
|
||||
} else if ([@"onScroll" isEqualToString:name]) {
|
||||
self.onScrollFuncId = prop;
|
||||
} else if ([@"onScrollEnd" isEqualToString:name]) {
|
||||
|
Reference in New Issue
Block a user