项目
在 GitHub 查看
kevinzhow/Waver
关于
类似 Siri 的波形动画
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文#Waver
A Siri like wave effect
Requirements
Waver works on iOS 7.0 and later version and is compatible with ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates:
- Foundation.framework
- UIKit.framework
- CoreGraphics.framework
- QuartzCore.framework
You will need LLVM 3.0 or later in order to build Waver.
Usage
Cocoapods
CocoaPods is the recommended way to add Waver to your project.
- Add a pod entry for Waver to your Podfile
pod 'Waver', '~> 0.2.0' - Install the pod(s) by running
pod install. - Include Waver wherever you need it with
#import "Waver.h".
Or Copy the Waver folder to your project
Example
Waver * waver = [[Waver alloc] initWithFrame:CGRectMake(0, CGRectGetHeight(self.view.bounds)/2.0 - 50.0, CGRectGetWidth(self.view.bounds), 100.0)];
__weak Waver * weakWaver = waver;
waver.waverLevelCallback = ^() {
[self.recorder updateMeters];
CGFloat normalizedValue = pow (10, [self.recorder averagePowerForChannel:0] / 50);
weakWaver.level = normalizedValue;
};
[self.view addSubview:waver];
License
This code is distributed under the terms and conditions of the MIT license.
SpecialThanks
探索相关项目
加载中…

