You can remove it easily with:
self.navigationItem.rightBarButtonItem = nil;
题
I've created a master detail app using the template in Xcode. When I did the Apple ToDoList tutorial where you start with an ordinary app and add the second view yourself I added the plus and done buttons, but this template seems to include them automatically, except that I don't see them in interface builder, only when I run the app. I don't want to have an "edit" button on the top left (although I do want users to be able to swipe to delete items).
So, my question is twofold:
http://www.mazz0.com/images/xcode/masterdetaileditbutton/storyboard.png http://www.mazz0.com/images/xcode/masterdetaileditbutton/app.png
解决方案
You can remove it easily with:
self.navigationItem.rightBarButtonItem = nil;
其他提示
In your TableViewController
you can comment out:
// Use the edit button item provided by the table view controller.
// navigationItem.leftBarButtonItem = editButtonItem()