视图内的图像显示底部空白

问题描述

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

enter image description here

enter image description here

enter image description here

我的幻灯片功能

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)
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)