# EMHint
## Overview
**EMHint** is an iOS class group that easily adds a spotlight-like effect to a view highlighting or hinting at something that may be important on the screen.The protocols of EMHintDelegate allow users to override many of the default actions and views. Tapping the black overlay fades it away.
Great for quick "how to" or tutorials in your app.
#### Installation
1. Drop in EMHint (.h/.m) & EMHintsView (.h/.m)
2. Pick a logical place to manage EMHintDelegate protocol implementation and conform to `<EMHintDelegate>` .
3. \#import "EMHint.h"
3. Call a new hint using the instance method `presentModalMessage:(NSString*)message where:(UIView*)presentationPlace`
3. You must implement `(CGRect)hintStateRectToHint:(id)hintState` **OR** `-(UIView*)hintStateViewToHint:(id)hintState` - without one, you will throw an exception. By doing so, EMHint can understand the radius of the spotlight to draw, and where-abouts.
See the example app (`HintMakerExample`)in this build for more.
#### Tips
1. It's possible to "daisy chain" hints. See the `HintHelper.m` class for a quick overview of using enums and protocol methods
2. Custom views can be added inplace of the default white text. Useful if you need to add a view or label not at center, or any custom graphics, etc
3. return CGRectMake(0,0,1,1) for an all black bg without spotlight….CGRectZero will fail.
4. Not ARC compliant….later.
#### Todo's (limitations)
1. add rectangular spotlight (and other shapes)
2. different background colors/alpha/etc
3. support rotation (currently only label and background do so)
没有合适的资源?快使用搜索试试~ 我知道了~
iOS游戏应用源代码——mcconkiee-EMHint-b15b0aa.zip
共25个文件
m:6个
h:5个
plist:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 193 浏览量
2023-07-05
23:20:41
上传
评论
收藏 206KB ZIP 举报
温馨提示
iOS游戏应用源代码——mcconkiee-EMHint-b15b0aa.zip
资源推荐
资源详情
资源评论
收起资源包目录
iOS游戏应用源代码——mcconkiee-EMHint-b15b0aa.zip (25个子文件)
mcconkiee-EMHint-b15b0aa
HintMakerExample.xcodeproj
project.pbxproj 14KB
xcuserdata
mcconkiee.xcuserdatad
xcdebugger
Breakpoints.xcbkptlist 91B
xcschemes
HintMakerExample.xcscheme 3KB
xcschememanagement.plist 488B
project.xcworkspace
contents.xcworkspacedata 161B
xcuserdata
mcconkiee.xcuserdatad
UserInterfaceState.xcuserstate 45KB
WorkspaceSettings.xcsettings 382B
LICENSE.txt 1KB
HintMakerExample
HintHelper.h 2KB
EMViewController.xib 5KB
EMHint.h 3KB
EMHintsView.m 6KB
EMAppDelegate.m 4KB
main.m 339B
EMAppDelegate.h 1KB
EMViewController.h 1KB
HintMakerExample-Prefix.pch 335B
EMHint.m 6KB
sample.png 155KB
EMHintsView.h 1KB
en.lproj
InfoPlist.strings 45B
EMViewController.m 3KB
HintMakerExample-Info.plist 1KB
HintHelper.m 5KB
README.md 2KB
共 25 条
- 1
资源评论
快乐无限出发
- 粉丝: 1135
- 资源: 7274
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功