Commit 29d704ce authored by Gleb Pinigin's avatar Gleb Pinigin

Update plain/done background for edit button when editing state changes

parent 393f7083
......@@ -250,7 +250,14 @@
- (void)setEditing:(BOOL)editing animated:(BOOL)animated
[super setEditing:editing animated:animated];
NSString *editImage = editing? @"doneButton": @"button";
NSString *editImageHighlight = editing? @"doneButtonHighlight": @"buttonHighlight";
[self.editButtonItem setBackgroundImage:[UIImage imageNamed:editImage] forState:UIControlStateNormal
[self.editButtonItem setBackgroundImage:[UIImage imageNamed:editImageHighlight]
forState:UIControlStateHighlighted barMetrics:UIBarMetricsDefault];
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
[self.gridView setEditing:editing];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment