ios - 视图内的图像显示底部空白
问题描述
我的视图控制器中有一个幻灯片图像我将内容模式更改为缩放以填充,但它从底部显示空白
我的幻灯片功能
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)
}
解决方案
推荐阅读
- r - ggplot2 中 facet_wrap() 的手动中断
- kubernetes - 是否有一个 GUI 可以像“kubectl cp”一样上传文件?
- vb.net - 我如何制作组合框以列出所有带有我在 vb 中键入的文本的值
- sftp - 有没有办法通过 SFTP 与远程文件夹同步?
- javascript - 如何在没有加密密码的情况下将“auth”与 Adonis 一起使用?
- java - 无法替换批处理文件中的参数值 - PostBuildScript 插件 Jenkins
- javascript - 如果我在我的反应项目中使用故事书,我可以从我的 js 包中删除它吗?
- sql - 如何在 Postgres 中更新一对多关系?
- websphere - Websphere 管理控制台重启
- java - 使用 Junit 4 for java servlet 的快乐流测试用例