项目介绍:
FlareView
https://github.com/StanlyHardy/FlareView
Spice up your app UIView’s by adding magical flares around any UIView’s.
在任意 UIView 上增加魔法闪耀(耀斑)的效果
Have you ever thought of making your user interface by adding magical flares when the user interacts with your app? Use this library if you wanna do so…
你有没有想过通过在用户与你的应用程序交互时添加闪耀动画做出你的用户交互界面?
Features
-
All UIView’s that’s enclosed within a parent view can be flarified without any exception.
包含在父视图中的所有UIView可以无任何异常地变形。 -
You can customize the flare colours as per your own requirement
您可以根据自己的要求自定义闪烁光圈的颜色
Requirements 环境需求
-
iOS 8.0+
-
Xcode 7.3
Installation 安装方式
CocoaPods
You can use CocoaPods to install Flareview
by adding it to your Podfile
:
在
platform :ios, '8.0'
use_frameworks!
pod 'flareview', '~> 0.1'
To get the full benefits import FlareView/FlareView.h
wherever you import UIKit
import UIKit
#import <FlareView/FlareView.h>
Manually 手动安装方式
-
Download and drop
FlareView.h
andFlareView.m
in your project.
1、下载文件并拖动FlareView.h
和FlareView.m
到你的项目中。 -
Congratulations!
2、完成!
Usage example 使用示例
#import <FlareView/FlareView.h>
- (void)viewDidLoad {
[super viewDidLoad];
[[FlareView sharedCenter]flarify:self.smiley inParentView:self.view withColor:[UIColor yellowColor]];
}