UITableview edit/done button

前端 未结 3 1141
Happy的楠姐
Happy的楠姐 2020-12-28 18:11

I have a tableview and navigation bar on the top.

I have a Edit button on the left of my navigation bar with the following line of code.

self.navig         


        
3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-28 19:07

    Here is a Swift version I used:

    override func setEditing(editing: Bool, animated: Bool) {
        super.setEditing(editing, animated: animated)
    
        if editing {
    
        } else {
    
        }
    }
    

提交回复
热议问题