UITableView in edit mode - 'Edit' button doesn't change status

前端 未结 3 948
自闭症患者
自闭症患者 2021-02-08 04:41

I have a UIViewController class, with a tableView. In viewDidLoad:

UIBarButtonItem *editIcon = [[[UIBarButtonItem alloc]
initWithBarButtonSystemItem: UIBarButton         


        
3条回答
  •  无人共我
    2021-02-08 05:38

    You sure callsArray is not empty ?

    Place a breakpoint inside toggleEditMode and see what happens there.

    Edit

    Ok, after understanding your question, have a look at this thread

提交回复
热议问题