If you are using the navigation controller to push to the view controller, simply set self.navigationItem. RightBarButtonItem = self. EditButtonItem which will put the default Edit button in the right.
If the navigation bar is not visible, call self. NavigationController. NavigationBardden = NO Those would be called in the viewDidLoad method, or something similar.
Then in order to get the tableView to respond to the edit call, use the following method.
If you are using the navigation controller to push to the view controller, simply set self.navigationItem. RightBarButtonItem = self. EditButtonItem;, which will put the default Edit button in the right.
If the navigation bar is not visible, call self. NavigationController. NavigationBar Those would be called in the viewDidLoad method, or something similar.
Then in order to get the tableView to respond to the edit call, use the following method: - (void)setEditing:(BOOL)editing animated:(BOOL)animated { super setEditing:editing animated:animated; tableView setEditing:editing animated:animated; } That should do what you want it to do. If you have any issues, just say so and we can narrow down the details.
Yeah, I know how to do it programatically, but I've been trying to accomplish it through the Storyboard UI. – markplee Oct 27 at 20:09 It should be pretty much the same. I've been using the Storyboard UI also (which I have to say makes life a lot easier) and have had to do similar things and that is how I went about it.
I have noticed that sometimes you have to go through self. ParentViewController.navigationItem. RightBarButtonItem = yourButton; at times in order to get the desired view in your heirarchy.
But the rest should stay the same as before so long as your tableView is linked to the viewController as an IBOutlet – slev Oct 27 at 23:19 Is there any news about it? Been trying to figure out how to replace the one LOC with the new Storyboard feature. Just putting a button into the navigation bar and naming it "Edit" doesn't work of course.
;) – Sebastian Wramba Nov 27 at 12:15 @SebastianWramba you should be able to do something like that, honestly. Just call it Edit, then assign it an IBAction method that calls setEditing:animated:. Personally, I just create it programmatically in the specific view controller's viewDidLoad method, using self.navigationItem.
RightBarButtonItem = self.editButtonItem. That way you don't have to assign a method (setEditing...) since it's a standard button item. Hopefully that makes sense – slev Nov 28 at 2:33 True, I guess reinventing the wheel (or in this case put the wheel somewhere else) is not a very smart move.
Implementing the Edit button the old fashioned way still seems to be the best way although there are the storyboards and segues now. – Sebastian Wramba Nov 28 at 14:38.
I think that also with Storyboard, the only way (for sure, the easiest one) to implement a working edit/done button, is to use the following code: - (void)viewDidLoad { super viewDidLoad; ... //set the edit button self.navigationItem. LeftBarButtonItem = self. EditButtonItem; ... This is the solution that Apple itself implements if you select a "Master-Detail Application" template for your project.
Probably Storyboard is still not perfect, and hopefully it will be improved from Apple in next releases...
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.