1
나는 이번 주에 프로그래밍을 시작했으며 내 응용 프로그램에서 간단한 탐색 모음을 만들려고합니다. 이 오류를 만나는 것은 처음이 아니며 무엇이 빠져 있는지 모릅니다. 내가 잘못 본게 아니라면 나는 correctrly 코드에 UI에 이르기까지 모든 것을 걸고 있지만 출력은 말한다 :스레드 1 : signal SIGABRT libC++ abi.dylib : NSException (lldb) 유형의 캐치되지 않는 예외로 종료
libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
어떤 실수가 될 수 있습니까? 감사합니다
import UIKit
class ViewController: UIViewController {
var t = Timer()
@IBAction func hi(_ sender: Any) {
print("Camera button pressed")
t.invalidate()
}
func processTimer() {
print("1 second has passed")
}
override func viewDidLoad() {
super.viewDidLoad()
t = Timer.scheduledTimer(timeInterval: 1, target: self, selector: Selector(("processTimer")), userInfo: nil, repeats: true)
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
변경되었지만 작동하지 않는 경우 전체 코드 : https://pastebin.com/4bFR2bvM – Marci
전체 오류 텍스트를 공유 할 수 있습니까? – Zee
https://pastebin.com/taMssZHT – Marci