简体   繁体   中英

App Quits when button is pressed

i am making a soundboard app and when i run it in Xcode, after i click one of the buttons to play the sound i get an error. This is the Log of the crash

2012-07-14 20:24:34.395 SoundBoard[15374:c07] Could not load the "BG.png" image referenced from a nib in the bundle with identifier "Apple.SoundBoard" 2012-07-14 20:24:41.645 SoundBoard[15374:c07] -[ViewController playSound1]: unrecognized selector sent to instance 0x93a99b0 2012-07-14 20:24:41.648 SoundBoard[15374:c07] (null) libc++abi.dylib: terminate called throwing an exception (lldb)

Any help? i can't figure it out

Thanks

您尚未在ViewController类上定义-playSound1方法。

You have no implementation of -playsound1 on your view controller. It's defined in the header, but not implemented, hence the warning.

Just implement the method (making it play a sound) and it'll work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM