From c34e8c63dd85b46c852cc9053abec504cdd6d292 Mon Sep 17 00:00:00 2001 From: Adrian McGee Date: Tue, 6 Jun 2017 15:18:10 +1000 Subject: [PATCH] Issue #856 Fixed this issue by putting the tool into non-edit mode on viewdidload. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I found the ‘Edit’ bar button to be confusing as it’s title doesn’t update based on it’s state. I have fixed that. --- Example/EditorDemo/WPViewController.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Example/EditorDemo/WPViewController.m b/Example/EditorDemo/WPViewController.m index d871144..154d9e2 100644 --- a/Example/EditorDemo/WPViewController.m +++ b/Example/EditorDemo/WPViewController.m @@ -30,6 +30,7 @@ - (void)viewDidLoad action:@selector(editTouchedUpInside)]; self.mediaAdded = [NSMutableDictionary dictionary]; self.videoPressCache = [[NSCache alloc] init]; + self.editing = NO; } - (void)customizeAppearance @@ -60,8 +61,10 @@ - (void)editTouchedUpInside { if (self.isEditing) { [self stopEditing]; + self.navigationItem.leftBarButtonItem.title = @"Edit"; } else { [self startEditing]; + self.navigationItem.leftBarButtonItem.title = @"Save"; } }