Guest User

Untitled

a guest
Oct 19th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
  2.  
  3. import UIKit
  4.  
  5. class ViewController: UIViewController {
  6. var t = Timer()
  7. @IBAction func hi(_ sender: Any) {
  8. print("Camera button pressed")
  9. t.invalidate()
  10. }
  11.  
  12. func processTimer() {
  13. print("1 second has passed")
  14. }
  15. override func viewDidLoad() {
  16. super.viewDidLoad()
  17.  
  18.  
  19. t = Timer.scheduledTimer(timeInterval: 1, target: self, selector: Selector(("processTimer")), userInfo: nil, repeats: true)
  20. // Do any additional setup after loading the view, typically from a nib.
  21. }
  22.  
  23. override func didReceiveMemoryWarning() {
  24. super.didReceiveMemoryWarning()
  25. // Dispose of any resources that can be recreated.
  26. }
Add Comment
Please, Sign In to add comment