Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Zrzzzz committed Dec 1, 2020
1 parent 2496224 commit a819514
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions WePeiYang/FeedBack/View/SelectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
import UIKit

class SelectionView: UICollectionView, UICollectionViewDelegate, UICollectionViewDataSource {
private let cellId = "SELECTION_VIEW_CELL_ID"
private var selectedIdx: Int = -1
private var data: [String]!
private var callBack: ((Int)->Void)?

private let cellId = "SELECTION_VIEW_CELL_ID" // Cell 注册ID
private var selectedIdx: Int = -1 // -1 则为不选择
private var data: [String] // 数据
private var callBack: ((Int)->Void)? // 回调函数
// 是否能够取消选择
var allowsCancelSelection: Bool = false

init(data: [String], collectionViewLayout: UICollectionViewFlowLayout, callBack: ((Int)->Void)? = nil) {
Expand Down

0 comments on commit a819514

Please sign in to comment.