소스 검색

添加 LOG

jsonwang 3 년 전
부모
커밋
2056b6ed4c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      BFFramework/Classes/Stuckpoint/View/PQCustomSwitchView.swift

+ 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)