[翻译] WZFlashButton
翻译
2023-09-14 08:57:16 时间
WZFlashButton
This is a custom button with flash-like effect. Inspired by Ripple Effect.
这是一个自定义的按钮,有着闪烁效果,灵感来自于 Ripple Effect。
Demo
Build the project and run, you will find there are four different kind of WZFlashButton.
编译并运行这个项目,你将会发现几种不同类型的WZFlashButton。
Outer flash without text Outer flash with text Inner flash without text Inner flash with textUsage
Inner Flash Button - 按钮里面的闪烁效果WZFlashButton *innerFlashButton = [[WZFlashButton alloc] initWithFrame:CGRectMake(100, 200, 200, 60)]; innerFlashButton.backgroundColor = [UIColor colorWithRed:42.0f/255.0f green:62.0f/255.0f blue:80.0f alpha:1.0f]; [self.view addSubview:innerFlashButton];Outer Flash Button - 按钮外面的闪烁效果
WZFlashButton *outerRoundFlashButton = [[WZFlashButton alloc] initWithFrame:CGRectMake(100, 50, 50, 50)]; outerRoundFlashButton.buttonType = WZFlashButtonTypeOuter; outerRoundFlashButton.layer.cornerRadius = 25; outerRoundFlashButton.flashColor = [UIColor colorWithRed:240/255.f green:159/255.f blue:10/255.f alpha:1]; outerRoundFlashButton.backgroundColor = [UIColor colorWithRed:0 green:152.0f/255.0f blue:203.0f/255.0f alpha:1.0f]; [self.view addSubview:outerRoundFlashButton];Set Click Block Callback - 设置按钮回调
innerFlashButton.clickBlock = ^(void) { NSLog(@"Click Done");
Example - 例子
It is very easy to use WZFlashButton while get amazing effect, you can take a look at the following demo
使用起来非常的简单,你可以在编译的项目中查看demo。
[翻译]IAdaptable是什么? IAdaptable在Eclipse里是一个非常重要的接口。对于Eclipse开发老手来说,它就像异常处理和抽象类一样寻常;但是对新手而言,它却令人感到困惑和畏惧。这篇文章将向你解释IAdaptable到底是什么,以及它在Eclipse里起到的作用。
相关文章
- [翻译] Overleaf 中的语法检查 – Spell check language
- 第七-八章 语法制导翻译和中间代码生成
- 使用 nodejs 开发命令行小工具 - 谷歌翻译字幕
- 【翻译】WPF中的数据绑定表达式
- python百度翻译
- 苹果Mac电脑超好用的翻译软件合集
- 【翻译】Reactor 第七篇 Spring WebFlux 怎么进行异常处理
- k8s kubectl 命令 “人话” 翻译插件!! 离声控操作只有一步之遥。
- 谷歌翻译中国站点疑似关闭;字节跳动升级员工关怀计划:新增每年10天家庭关爱假;Istio 正式成为 CNCF 孵化项目|Q资讯
- 《以太坊官方文档》翻译邀请
- MySQL配置文件my.cnf例子最详细翻译
- jquery.ui.draggable中文文档(原文翻译)