为什么此代码包含未定义的行为(程序在一半的时间内完成)。当我需要完成程序时,如何彻底关闭阅读器?
func handleAccessoryAttach(_ notification:NSNotification){
txt_rcvd.text = "Accessory Attached"
}
func handleAccessoryDetach(_ notification:NSNotification){
txt_rcvd.text = "Accessory Detached"
}