//navigation添加右侧可编辑或者删除按钮
UIBarButtonItem *editButton = [[UIBarButtonItemalloc ]
initWithTitle:@"Delete"
style:UIBarButtonItemStyleBordered
target:self
action:@selector(toggleEdit:)];
self.navigationItem.rightBarButtonItem = editButton;
[editButton release];