{"id":20620872,"url":"https://github.com/irons163/irpopupmenu","last_synced_at":"2025-08-12T21:03:52.288Z","repository":{"id":56915185,"uuid":"197296010","full_name":"irons163/IRPopupMenu","owner":"irons163","description":"Custom Popup Menu.","archived":false,"fork":false,"pushed_at":"2019-11-08T05:48:39.000Z","size":217,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-11T08:35:48.413Z","etag":null,"topics":["custom-menu-builder","custommenu","ios","menu","objcective-c","popup","popup-menu"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/irons163.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-17T01:58:23.000Z","updated_at":"2022-10-14T14:20:00.000Z","dependencies_parsed_at":"2022-08-20T20:50:35.374Z","dependency_job_id":null,"html_url":"https://github.com/irons163/IRPopupMenu","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/irons163/IRPopupMenu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irons163%2FIRPopupMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irons163%2FIRPopupMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irons163%2FIRPopupMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irons163%2FIRPopupMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irons163","download_url":"https://codeload.github.com/irons163/IRPopupMenu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irons163%2FIRPopupMenu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259479471,"owners_count":22864355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-menu-builder","custommenu","ios","menu","objcective-c","popup","popup-menu"],"created_at":"2024-11-16T12:15:56.759Z","updated_at":"2025-06-12T14:04:22.487Z","avatar_url":"https://github.com/irons163.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IRPopupMenu\n##### This project is copy and change from YBPopupMenu. Implemet custom arrow icon.\n * Custom popupMenu \n\n# 效果图\n![(演示效果)](./demo/ScreenShots/demo1.png)\n![(演示效果)](./demo/ScreenShots/demo2.png)\n\n# cocoapods支持\n  * 只需在`Podfile`中加入`pod 'IRPopupMenu', '~\u003e 1.0.0'`后`pod install`即可\n\n# 最近更新\n  * 开放部分私有属性，如`titles`，`images`,`tableView`,`minSpace`等等\n  * 点击回调方法有更新（旧的还可以用）\n  * 增加可自定义Cell的回调，遇到奇葩需求可以自定义设置（具体使用方法可参考demo）\n\n  \n# 上次更新\n  * 代码全部重构，不过完全兼容原先的API接口\n  * 增加了`IRPopupMenuPriorityDirection`属性，可以设置箭头的第一优先级方向，当将要超过屏幕时会自动反转方向\n  * 增加了`rectCorner`属性，可以自定义圆角（当反转时会自动镜像的反转圆角）\n  * 可以设置边框颜色，边框粗细等\n  * 支持传入`NSAttributedString`\n  \n# 注意\n  1. 当箭头优先级是`IRPopupMenuPriorityDirectionLeft`/`IRPopupMenuPriorityDirectionRight`/`IRPopupMenuPriorityDirectionNone`时需手动设置`arrowPosition`来设置箭头在该行的位置\n  2. 边框宽度不宜过粗，影响美观\n  3. 推荐使用新的实例化接口\n\n# 使用方法\n  * `#import \"IRPopupMenu.h\"`\n  * 方法一 （旧）\n  \n  ```\n  IRPopupMenu * popupMenu = [IRPopupMenu showRelyOnView:sender titles:TITLES icons:ICONS menuWidth:120 delegate:self];\n  popupMenu.dismissOnSelected = NO;\n  popupMenu.isShowShadow = YES;\n  popupMenu...;\n  ```\n  * 方法二 （推荐）\n  \n  ```\n  [IRPopupMenu showAtPoint:p titles:TITLES icons:nil menuWidth:110 otherSettings:^(IRPopupMenu *popupMenu) {\n        popupMenu.dismissOnSelected = NO;\n        popupMenu.isShowShadow = YES;\n        popupMenu.delegate = self;\n        popupMenu.offset = 10;\n        popupMenu.type = IRPopupMenuTypeDark;\n        popupMenu.rectCorner = UIRectCornerBottomLeft | UIRectCornerBottomRight;\n        popupMenu...;\n    }];\n  ``` \n  \n\n# 版本支持\n  * `xcode7.0+`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firons163%2Firpopupmenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firons163%2Firpopupmenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firons163%2Firpopupmenu/lists"}