iOS点击button60秒倒计时
来源:互联网 发布:手机店刷机软件 编辑:程序博客网 时间:2024/05/16 15:47
#在button的点击触发方法里面调用这个- (void)verifyEvent方法就可以实现倒计时
- (void)verifyEvent
{
//启动倒计时
[selfperformSelector:@selector(reflashGetKeyBt:)withObject:[NSNumbernumberWithInt:60]afterDelay:0];
}
//倒数
- (void)reflashGetKeyBt:(NSNumber *)second
{
if ([secondintegerValue] == 0)
{
_codeButton.selected=YES;
_codeButton.userInteractionEnabled=YES;
[_codeButtonsetTitle:@"重新获取"forState:(UIControlStateNormal)];
[_codeButtonsetTitleColor:[UIColorwhiteColor]forState:UIControlStateNormal];
}
else
{
_codeButton.selected=NO;
_codeButton.userInteractionEnabled=NO;
int i = [secondintValue];
[_codeButtonsetTitle:[NSStringstringWithFormat:@"重新获得(%i)",i]forState:(UIControlStateNormal)];
[selfperformSelector:@selector(reflashGetKeyBt:)withObject:[NSNumbernumberWithInt:i-1]afterDelay:1];
}
}
- iOS点击button60秒倒计时
- IOS倒计时秒杀
- iOS秒杀倒计时
- iOS实现倒计时显示 时 分 秒
- 秒杀活动倒计时 iOS代码实现
- iOS实现倒计时显示 时 分 秒
- iOS 实现倒计时显示 时 分 秒
- iOS中 简单易懂的秒杀倒计时/倒计时
- iOS中 简单易懂的秒杀倒计时/倒计时
- iOS中简单易懂秒杀倒计时/倒计时
- iOS中简单易懂秒杀倒计时/倒计时
- 让按钮倒计时10秒以后才能点击提交
- 倒计时60秒方可再次点击发送的Js代码
- 点击按钮出现60秒禁用倒计时js代码
- 点击按钮出现60秒倒计时js代码
- 点击按钮出现60秒倒计时js代码
- 点击按钮出现5秒倒计时js代码
- 微信小程序点击发送短信验证(60秒倒计时)
- Android和ios微信浏览器中按钮显示不一样的问题
- Java嵌入式数据库H2学习总结(二)——在Web应用程序中使用H2数据库
- 安卓手册 第零章(面试)
- Sping_mvc下创建session对象
- shell脚本变量$#,$*,$$,$@,$0,$1,$2,$?的含义
- iOS点击button60秒倒计时
- java.util.concurrent.ExecutionException:
- Cocos2d-x程序在Android下的启动过程
- [翻译]Objective-C 2015新特性
- html5 百度 google地图定位关键字搜索附近
- 火狐中打开新的标签页出现白屏
- Why Python?
- Python Tutorial 学习笔记4 ——Module
- Android ActionBar控件使用