首页 > 解决方案 > 视图内的图像显示底部空白

问题描述

我的视图控制器中有一个幻灯片图像我将内容模式更改为缩放以填充,但它从底部显示空白

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

我的幻灯片功能

func imageSlideShowInitialize(source: [SDWebImageSource]) {
    slideshow.slideshowInterval = 5.0
    slideshow.pageIndicatorPosition = .init(horizontal: .center, vertical: .under)
    slideshow.contentScaleMode = UIViewContentMode.scaleAspectFill


    slideshow.activityIndicator = DefaultActivityIndicator()
    slideshow.delegate = self

    slideshow.setImageInputs(source)

    let recognizer = UITapGestureRecognizer(target: self, action: #selector(self.didTap))
    slideshow.addGestureRecognizer(recognizer)
}

标签: iosswiftxcodeuiviewcontrollerslideshow

解决方案


推荐阅读