From 5c244d5766b17c33da14b134fb6d20556a4c2d1d Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期三, 25 十月 2023 17:19:46 +0800 Subject: [PATCH] 修复BUG --- WanPai/Common/View/CommonBannerView.swift | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/WanPai/Common/View/CommonBannerView.swift b/WanPai/Common/View/CommonBannerView.swift index 8fd2b1f..c294047 100644 --- a/WanPai/Common/View/CommonBannerView.swift +++ b/WanPai/Common/View/CommonBannerView.swift @@ -68,6 +68,7 @@ self.addSubview(scrollView) var image = UIImageView() + image.sizeToFit() image.frame = CGRect(x:0,y:0,width:width,height:height) image.contentMode = .scaleToFill image.isUserInteractionEnabled = true @@ -84,6 +85,7 @@ addTapGesWithImage(image: image) } image = UIImageView() + image.sizeToFit() image.frame = CGRect(x:width * CGFloat(images.count + 1),y:0,width:width,height:height) image.contentMode = .scaleToFill -- Gitblit v1.7.1