TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Oct 2016 |
Maintained by Easence.
EAFeatureGuideView是UIView的一个扩展,用来做新功能引导提示,达到这样的效果:
如果安装了Cocoapods,可以在Podfile中加入如下代码:
pod 'EAFeatureGuideView'
,接着pod install
一下。
接着在需要展示提示的页面引入头文件:
#import "UIView+EAFeatureGuideView.h"
最后添加如下代码:
EAFeatureItem *item = [[EAFeatureItem alloc] initWithFocusView:self.exampleCell focusCornerRadius:0 focusInsets:UIEdgeInsetsZero];
item.introduce = @"txt_feature_post_activity_4.1.png";
item.actionTitle = @"太好了";
item.action = ^(id sender){
NSLog(@"touched ..");
};
EAFeatureItem *recents = [[EAFeatureItem alloc] initWithFocusRect:CGRectMake(centerX - 25, centerY - 25, 50, 50) focusCornerRadius:25 focusInsets:UIEdgeInsetsZero];
recents.introduce = @"recents";
[self.navigationController.view showWithFeatureItems:@[item, recents] saveKeyName:@"keyName" inVersion:nil];