Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片未加载完、视频等,下拉跳闪的解决办法 #342

Open
Tony9527i opened this issue Apr 21, 2022 · 0 comments
Open

图片未加载完、视频等,下拉跳闪的解决办法 #342

Tony9527i opened this issue Apr 21, 2022 · 0 comments

Comments

@Tony9527i
Copy link

YBIBVideoCell里改动这两处

  • (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
    [self initValue];
    [self.contentView addSubview:self.videoView];
    self.videoView.frame = self.bounds;
    [self addGesture];
    }
    return self;
    }

//- (void)layoutSubviews {
// [super layoutSubviews];
// self.videoView.frame = self.bounds;
//}

YBIBImageCell里改动这两处

  • (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
    [self initValue];
    [self.contentView addSubview:self.imageScrollView];
    self.imageScrollView.frame = self.bounds;
    [self addGesture];
    }
    return self;
    }

//- (void)layoutSubviews {
// [super layoutSubviews];
// self.imageScrollView.frame = self.bounds;
//}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant