Nijino Saki
Nijino Saki
一样,正在研究解决方法
楼上的方法可以解决,不过需要在 SDCycleScrollView 中引入 Masonry 库,另外适配的代码在 SDCycleScrollView.m 的 525 行,需要这么写: if (@available(iOS 14.0, *)) { [self.pageControl mas_makeConstraints:^(MASConstraintMaker *make) { make.centerX.equalTo(self); make.bottom.offset(-10); make.height.offset(self.pageControlDotSize.height); }]; } else { CGRect pageControlFrame = CGRectMake(x, y,...
> It works! > But my code is: > > ```objc > if (@available(iOS 14.0, *)) { > [self addSubview:self.pageControl]; > [self.pageControl mas_makeConstraints:^(MASConstraintMaker *make) { > make.centerX.equalTo(self); > make.bottom.offset(-10); >...