Skip to content
This repository was archived by the owner on Dec 13, 2017. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Example/EditorDemo/WPViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ - (void)viewDidLoad
action:@selector(editTouchedUpInside)];
self.mediaAdded = [NSMutableDictionary dictionary];
self.videoPressCache = [[NSCache alloc] init];
self.editing = NO;
}

- (void)customizeAppearance
Expand Down Expand Up @@ -60,8 +61,10 @@ - (void)editTouchedUpInside
{
if (self.isEditing) {
[self stopEditing];
self.navigationItem.leftBarButtonItem.title = @"Edit";
} else {
[self startEditing];
self.navigationItem.leftBarButtonItem.title = @"Save";
}
}

Expand Down