I can't create UIResponder nextResponder in Swift iOS

前端 未结 1 669
醉酒成梦
醉酒成梦 2021-01-21 01:56

I have a class ASTextField which extends after UITextField and I want to define textFieldResponder.

Is any solution to write below line in Swift ??

UIRes         


        
1条回答
  •  一向
    一向 (楼主)
    2021-01-21 02:37

    it will be something like this

    let nextResponder = textField.superview?.viewWithTag(nextTag) as UIResponder!

    Hope it helps!

    0 讨论(0)
提交回复
热议问题