iOS:update js property

This commit is contained in:
pengfei.zhou 2020-04-22 13:08:47 +08:00 committed by osborn
parent 5c1714c15b
commit aa368d2e4b

View File

@ -314,7 +314,7 @@ - (void)removeDidScrollBlock:(__nonnull DoricDidScrollBlock)didScrollListener {
- (void)scrollToItem:(NSDictionary *)params {
BOOL animated = [params[@"animated"] boolValue];
NSUInteger scrolledPosition = [params[@"pos"] unsignedIntegerValue];
NSUInteger scrolledPosition = [params[@"index"] unsignedIntegerValue];
[self.view scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:scrolledPosition inSection:0] atScrollPosition:UITableViewScrollPositionNone animated:animated];
}