You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
view.addSubview(carouselV)
carouselV.snp.makeConstraints { make in
make.edges.equalToSuperview()
}
这样,但是在我push到下个界面的时候,会在要进入下个界面的时候,imageview的大小会从状态栏下面开始,而不是全屏,导致状态栏显示出来,我看层级,只有imageview会这样,下面的scrollview并没有
轮播图全屏的时候,push到下个界面,会出现imageview重新计算大小导致大小不是全屏
view.addSubview(carouselV)
carouselV.snp.makeConstraints { make in
make.edges.equalToSuperview()
}
这样,但是在我push到下个界面的时候,会在要进入下个界面的时候,imageview的大小会从状态栏下面开始,而不是全屏,导致状态栏显示出来,我看层级,只有imageview会这样,下面的scrollview并没有
<UIImageView: 0x10c9264d0; frame = (828 0; 414 896); clipsToBounds = YES; opaque = NO; userInteractionEnabled = NO; layer = <CALayer: 0x28222e100>>
Printing description of $54:
<UIScrollView: 0x111044e00; frame = (0 0; 414 896); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x282ce1fb0>; layer = <CALayer: 0x28222dd60>; contentOffset: {828, -44}; contentSize: {2070, 0}; adjustedContentInset: {44, 0, 34, 0}>
Printing description of $55:
<XRCarouselView: 0x10c924e10; frame = (0 0; 414 896); userInteractionEnabled = NO; layer = <CALayer: 0x28222e4e0>>
这是我断点的时候打印出的属性,我看到是UIScrollView 的contentOffset: {828, 0} 变化了contentOffset: {828, -44}
The text was updated successfully, but these errors were encountered: