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