iPhone Storyboard Editing a table view

前端 未结 7 1382
囚心锁ツ
囚心锁ツ 2021-02-06 04:15

I\'ve been trying to learn the new Storyboard feature in Xcode and I\'ve run into a problem with trying to set a UITableView to edit mode.

So far my storyboard looks lik

相关标签:
7条回答
  • 2021-02-06 05:14

    To summarize:

    The Button, returned by UIViewController.editButtonItem is a special toggling button with special behavior that calls - (void)setEditing:(BOOL)editing animated:(BOOL)animated if pressed.

    The Button, returned by UINavigationController.editButtonItem is a simple Button, just labeled with "Edit".

    The Storyboard allows to select the latter one.

    0 讨论(0)
提交回复
热议问题