# MCHelpGestureRecognizer
### A simple way to add help functionality into your app without the need for a button
![Example Gif](http://i.imgur.com/N2pFAGv.gif)
To use, simply import `MCHelpGestureRecognizer.h` and `MCHelpGestureRecognizer.m` into your project (like any other `UIGestureRecognizer`).
```objective-c
helpRecognizer = [[MCHelpGestureRecognizer alloc] initWithTarget:self action:@selector(showHelp)];
[helpRecognizer setDelegate:self];
[self.view addGestureRecognizer:helpRecognizer];
```
And then add a callback method:
```objective-c
-(void)showHelp
{
NSLog(@"HELP ME!");
}
```
Also, implement this delegate method to allow interaction with other UI Objects:
```objective-c
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
if ([touch.view isKindOfClass:[UIControl class]]) {
return NO;
}
return YES;
}
```
Simples!
Oh, and yes, it's MIT licensed. Go wild!
一种无需占用屏幕空间的按钮即可将帮助功能添加到您的应用程序的简单方法_Objective-C_C++_下载.zip
版权申诉
197 浏览量
2023-05-01
01:10:07
上传
评论
收藏 22KB ZIP 举报
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
![avatar-vip](https://csdnimg.cn/release/downloadcmsfe/public/img/user-vip.1c89f3c5.png)
快撑死的鱼
- 粉丝: 1w+
- 资源: 9153
最新资源
- 基于Java web的学生管理系统(源码+数据库+报告)高分项目
- 基于Java web的学生管理系统(源码+数据库+报告)期末大作业&课程设计
- FM1702SL芯片13.56MHZ NFC读卡器开发板PROTELPCB图+FM1702SL中文说明书+FM1715编程指南
- 期末大作业交通数据分析与应用期末作业程序源码+实验报告.zip
- 期末大作业基于Java web的图书销售管理系统(源码+数据库)高分项目
- python-leetcode面试题解之第274题H指数.zip
- python-leetcode面试题解之第270题最接近二叉搜索树值.zip
- python-leetcode面试题解之第267题回文排列II.zip
- python-leetcode面试题解之第264题丑数II.zip
- python-leetcode面试题解之第263题丑数.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)