Commit febc4947 authored by David黄金龙's avatar David黄金龙

默认图片替换

parent 99afdbbb
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import UIKit import UIKit
class YHHomeHeadView: UIView { class YHHomeHeadView: UIView {
static let viewH : CGFloat = (20 + YHHomeBannerView.viewH) + (20 + YHHkLifeAndIdView.viewH) + (20 + YHHomeKingKongBlockView.viewH) + 21 + 21 static let viewH : CGFloat = (20 + YHHomeBannerView.viewH) + (20 + YHHkLifeAndIdView.viewH) + (20 + YHHomeKingKongBlockView.viewH) + 20 + 20
override init(frame: CGRect) { override init(frame: CGRect) {
super.init(frame: frame) super.init(frame: frame)
......
...@@ -29,7 +29,7 @@ class YHHomeKingKongBlockView: UIView { ...@@ -29,7 +29,7 @@ class YHHomeKingKongBlockView: UIView {
private extension YHHomeKingKongBlockView { private extension YHHomeKingKongBlockView {
func initView() { func initView() {
let itemGap : CGFloat = (KScreenWidth - 16.0 * 2 - YHHomeKingKongBlockView.viewH * 4) / 3.0 let itemGap : CGFloat = (KScreenWidth - 20.0 * 2 - YHHomeKingKongBlockView.viewH * 4.0) / 3.0
var offsetX : CGFloat = 0 var offsetX : CGFloat = 0
for (index,item) in arrData.enumerated() { for (index,item) in arrData.enumerated() {
let view = YHHomeKingKongBlockItem() let view = YHHomeKingKongBlockItem()
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "Mask group@2x.png", "filename" : "品牌logo@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "Mask group@3x.png", "filename" : "品牌logo@3x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment