Skip to content

Instantly share code, notes, and snippets.

@steipete
Last active January 29, 2018 14:19
Show Gist options
  • Star 80 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save steipete/10541433 to your computer and use it in GitHub Desktop.
Save steipete/10541433 to your computer and use it in GitHub Desktop.
Using the "More" button. Of course the simple way that Apple uses in Mail/iOS is not public. rdar://16600859
- (NSString *)tableView:(UITableView *)tableView titleForSwipeAccessoryButtonForRowAtIndexPath:(NSIndexPath *)indexPath {
return @"More";
}
- (void)tableView:(UITableView *)tableView swipeAccessoryButtonPushedForRowAtIndexPath:(NSIndexPath *)indexPath {
NSLog(@"I wanted to be a pretty public API, but then time ran out and they forgot me...");
// Hide the More/Delete menu.
[self setEditing:NO animated:YES];
}
@Elaz
Copy link

Elaz commented Jul 20, 2014

@scheinem Sorry, but your implementation (MSC) is an insult to coding. Replacing Apple's private api calls with scrambled stringWithFormat and invocations? seriously?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment