How to use Context Menus in UIKit
In this post we’re going to add context menus to a UIKit UITableView. The end goal is to have something that looks like this: Why Use Context Menus? Context menus are great for keeping things tidy while still offering useful features. They: Keep your UI minimal Only show options when needed Feel natural with the iOS long-press gesture Save you adding extra buttons all over the UI – the menu keeps them tucked out of sight until needed. What We’re Making We’ll show a short list of fruit. When we long-press any item we will show a context menu with three options: ...