https://github.com/hansemannn/titanium-context-menu
Use the `UIPreviewInteraction` and `UIMenu` API in the Titanium SDK.
https://github.com/hansemannn/titanium-context-menu
appcelerator axway context-menu ios13 titanium
Last synced: about 1 year ago
JSON representation
Use the `UIPreviewInteraction` and `UIMenu` API in the Titanium SDK.
- Host: GitHub
- URL: https://github.com/hansemannn/titanium-context-menu
- Owner: hansemannn
- License: mit
- Created: 2019-09-08T13:22:44.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-07-14T21:59:54.000Z (almost 2 years ago)
- Last Synced: 2025-03-29T01:11:49.397Z (about 1 year ago)
- Topics: appcelerator, axway, context-menu, ios13, titanium
- Language: Objective-C
- Homepage:
- Size: 8.61 MB
- Stars: 13
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Titanium iOS 14+ Context Menus
Use the `UIPreviewInteraction` and `UIMenu` API in the Titanium SDK.

## Requirements
- [x] Titanium SDK 9.2.0+
- [x] iOS 14+
## How does it work?
Simply include the `ti.contextmenu` module in your tiapp.xml and let the magic happen.
### UIPreviewInteraction
Call the `addInteraction` method on any `Ti.UI.View` subclass (e.g. `Ti.UI.ImageView`).
### UIMenu
Add the `menu` property to a `Ti.UI.Button`. Since version 2.1.0, the `menu` property also works for buttons in the
navigation bar, e.g. `rightNavButton` or `leftNavButton`, but only if you have either a `title` or `image`.
Since version 2.2.0, the menu also works for the `ListView` and `TableView` API. Since version 4.0.0, you can use nested menus as well.
## Full Example
See the `example/app.js` for a full-featured example.
## License
MIT
## Author
Hans Knöchel