After adding callback to callbacks array, if added class released, how remove it automatically without removing on deinit of this class on swift?

后端 未结 0 1652
说谎
说谎 2021-02-05 18:40

I have these classes:

class Callback {
  let callback: () -> Void
  init(callback: @escaping () -> Void) {
    self.callback = callback
  }
}

class Callbac         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题