iOS:use image to implement gradient background color

This commit is contained in:
pengfei.zhou
2020-04-09 13:30:31 +08:00
committed by osborn
parent 410c01ba1c
commit ab11ee3372
4 changed files with 70 additions and 48 deletions

View File

@@ -66,6 +66,7 @@ - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
- (void)requestLayout {
[self.childNodes forEachIndexed:^(DoricViewNode *node, NSUInteger idx) {
[node requestLayout];
[node.view.doricLayout apply:self.view.frame.size];
node.view.left = idx * self.view.width;
}];