Guest User

Untitled

a guest
Feb 22nd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. import Foundation
  2. import UIKit
  3. class DragDropSession_AuxSingleton {
  4. public static var tableViews: [Column]! = []
  5. public static var indexes: [IndexPath]! = []
  6. public static func clean(){
  7. tableViews = [Column]()
  8. indexes = [IndexPath]()
  9. }
  10. public static func addSessionItem(from column: Column, at indexPath: IndexPath){
  11. tableViews.append(column)
  12. indexes.append(indexPath)
  13. }
  14. public static func removeAll() {
  15. for c in 0..<tableViews.count {
  16. tableViews[c].stickers.remove(at: indexes[c].row)
  17. tableViews[c].reloadData()
  18. }
  19. clean()
  20. }
  21. }
Add Comment
Please, Sign In to add comment