Extending UIViewController(s) to show UIAlertController without subclassing

后端 未结 0 1663
误落风尘
误落风尘 2021-02-05 07:31

I would like to reuse code to show alert when I delete some row in tableview in a few my view controllers:

func confirmDelete(item: String) {

    let alert         


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