How to define function that uses class type as a parameter in Swift?

前端 未结 0 1094
一个人的身影
一个人的身影 2020-12-18 15:02

I simply try to do the following:

func popTo(classType: AnyClass, from context: UINavigationController?) {
    let controller = context?.viewControllers.first         


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