Lazy Var Button Disappearing after the button.addTarget function is called

后端 未结 0 1196
一向
一向 2020-12-01 05:17

I have a button i initialized as :

lazy var sendMessage : UIButton = {
    let button = UIButton(type: .custom)
    // some code 
    button.addTarget (self ,         


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