Latest 1.0.9
Homepage https://github.com/Easence/EAFeatureGuideView
License MIT
Platforms ios 7.0
Frameworks UIKit
Authors

============

EAFeatureGuideView能做什么

EAFeatureGuideView是UIView的一个扩展,用来做新功能引导提示,达到这样的效果:

  • 局部区域高亮(可以设置圆角)
  • 有箭头指向高亮区域
  • 可以设置一段介绍文字(可以是图片、也可以是文字)
  • 可以对应一个按钮,可以通过配置事件、标题。
    最后的效果如下:
    效果图1
    效果图2

如何使用

如果安装了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];

可以优化的地方

  • 介绍文案没有支持多颜色。
  • 当高亮区域是圆形的时候,箭头的指向没有对中圆心。
  • 旋转屏幕的时候,EAFeatureItem是一个rect的时候,不能自动的重新布局。

Latest podspec

{
    "name": "EAFeatureGuideView",
    "version": "1.0.9",
    "summary": "Relayout after iOS device did changed Orientation.",
    "description": "An easy way to show feature guide with EAFeatureGuideView for iOS apps.",
    "homepage": "https://github.com/Easence/EAFeatureGuideView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Easence": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/Easence/EAFeatureGuideView.git",
        "tag": "1.0.9"
    },
    "source_files": [
        "EAFeatureGuideView",
        "EAFeatureGuideView/**/*.{h,m}"
    ],
    "resources": "EAFeatureGuideView/Resources/*.png",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This