Last updated: · Indexed by AgentSkillsHub · Auto-synced every 8h
PSMenuItem ============= A block based UIMenuItem subclass. The inflexible @selector based approach in UIMenuItem was driving me crazy. I searched quite a while for a block-based UIMenuItem, but couldn't find one. So finally, I sat down and wrote my own implementation for my iOS PDF framework PSPDFKit. If you are as annoyed about the missing target/action pattern, as I am, you will love this. Also read the in-depth article on my website. How to use objective-c // one time-call needed to prepare the block based PSMenuItem handler. [PSMenuItem installMenuHandlerForObject:button]; PSMenuItem actionItem = [[PSMenuItem alloc] initWithTitle:@"Action 1" block:^{ [[[UIAlertView alloc] initWithTitle:@"Message" message:@"From a block!" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] show]; }]; PSMenuItem submenuItem = [[PSMenuItem alloc] initWithTitle:@"Submenu..." block:^{ [UIMenuController sharedMenuController].menuItems = @[ [[PSMenuItem alloc] initWithTitle:@"Back..." block:^{ [self buttonPressed:button]; }], [[PSMenuItem alloc] initWithTitle:@"Sub 1" block:^{ NSLog(@"Sub 1 pressed"); }]]; [[UIMenuController sharedMenuController] setMenuVisible:YES animated:YES]; }];...
| Stars | 179 |
| Forks | 13 |
| Language | Objective-C |
| Category | AI Tool |
| Quality Score | 54.0232259444882/100 |
| Open Issues | 3 |
| Last Updated | 2015-06-24 |
| Created | 2012-07-16 |
| Est. Tokens | ~13k |
Looking for a PSMenuItem alternative? If you're comparing PSMenuItem with other ai tool tools, these 3 projects are the closest alternatives on Agent Skills Hub — ranked by topic overlap, star count, and community traction.
A tool to make socks connections through HTTP agents
Skip to content github / docs Code Issues 80 Pull requests 35 Discussions Actions Projects 2 Security Insights
.NET MAUI skills for GitHub Copilot and Claude Code
Explore other popular ai tool tools:
PSMenuItem is A block based UIMenuItem subclass.. It is categorized as a AI Tool with 179 GitHub stars.
PSMenuItem is primarily written in Objective-C.
You can find installation instructions and usage details in the PSMenuItem GitHub repository at github.com/steipete/PSMenuItem. The project has 179 stars and 13 forks, indicating an active community.
The top alternatives to PSMenuItem on Agent Skills Hub include pivotnacci, redesigned-pancake, maui-skills. Each offers a different approach to the same problem space — compare them side-by-side by stars, quality score, and community activity.