UIActionSheet with swift

后端 未结 5 1338
清酒与你
清酒与你 2021-02-20 15:07

I created an action sheet, but the problem is that the delegate method is not called

 myActionSheet = UIActionSheet()
        myActionSheet.addButtonWithTitle(\"         


        
5条回答
  •  清酒与你
    2021-02-20 15:32

    You never set the action sheet's delegate:

    myActionSheet = UIActionSheet()
    myActionSheet.delegate = self
    

提交回复
热议问题