2017-10-19 3 views
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. 
} 

}

답변

2

문제는 많은 IBActions에 연결되어있는 minus10Button 함께 - 그 중 일부는 존재하지 않았다. 인터페이스 빌더에서 minus10Button을 마우스 오른쪽 버튼으로 클릭하고 이전의 관련이없는 링크를 제거하여 문제를 수정하십시오.

+0

변경되었지만 작동하지 않는 경우 전체 코드 : https://pastebin.com/4bFR2bvM – Marci

+0

전체 오류 텍스트를 공유 할 수 있습니까? – Zee

+0

https://pastebin.com/taMssZHT – Marci

관련 문제