Ver Fonte

添加 LOG

jsonwang há 3 anos atrás
pai
commit
2056b6ed4c

+ 1 - 0
BFFramework/Classes/Stuckpoint/View/PQCustomSwitchView.swift

@@ -24,6 +24,7 @@ class PQCustomSwitchView: UIView {
 
     init(frame: CGRect, titles: [String], defaultIndex: Int = 1) {
         super.init(frame: frame)
+        BFLog(message: "初始时选择的位置 is \(defaultIndex)")
         let itemWidth: CGFloat = frame.width / CGFloat(titles.count)
         for (index, itemTitle) in titles.enumerated() {
             let itemBtn = UIButton(type: .custom)