Advertisement
Guest User

Untitled

a guest
Jun 1st, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. import Foundation
  2. import UIKit
  3.  
  4. class EasterEggController: NSObject, UIGestureRecognizerDelegate {
  5.  
  6. //MARK: Class Singleton
  7. class var sharedInstance: EasterEggController {
  8. struct Static {
  9. static var instance:EasterEggController?
  10. static var token: dispatch_once_t = 0
  11. }
  12.  
  13. dispatch_once(&Static.token) {
  14. Static.instance = EasterEggController()
  15. }
  16. return Static.instance!
  17. }
  18.  
  19.  
  20. func initiate(view:UIView) {
  21.  
  22. }
  23.  
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement