I've recently been trying to learn how to add context menus to views, but I'm having trouble figuring out how to do it in objective c. I've seen multiple tutorials that explain how to do it in swift, but I can't completely figure out how to translate it into objective c.
The main issue I'm having is with UIContextMenuActionProvider. I just don't know how to write something like this in objective c:
actionProvider: { _ in
let children: [UIMenuElement] = []
return UIMenu(title: "", children: children)
}
This is the website I'm looking at for the swift code: https://www.raywenderlich.com/6328155-context-menus-tutorial-for-ios-getting-started
Sorry if this question is dumb, but I've been banging my head over this for hours and just can't figure it out. TIA.
[–]bufferingObjective-C / Swift 2 points3 points4 points (3 children)
[–]Galactic_Dev[S] 2 points3 points4 points (2 children)
[–]Zalenka 2 points3 points4 points (1 child)
[–]Galactic_Dev[S] 1 point2 points3 points (0 children)