Run method on class knowing only its name

后端 未结 0 1680
情深已故
情深已故 2021-01-31 15:16

how can I launch method knowing its name (as String)

// key.rawValue.firstUppercased is `ApiAddress`
let result = preferencesRepository.perform(Selector("get         


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