当前位置:网站首页>短视频系统源码,点击屏幕空白处键盘不自动收起
短视频系统源码,点击屏幕空白处键盘不自动收起
2022-07-04 21:48:00 【云豹网络科技】
短视频系统源码,点击屏幕空白处键盘不自动收起
#import <UIKit/UIKit.h>
typedef void(^resignFirstResponderBlock)(BOOL hided);
@interface UITextField (hideKeyBoard)
//延时注销第一响应者
-(BOOL)resignFirstResponder:(resignFirstResponderBlock)block;
@end
#import "UITextField+hideKeyBoard.h"
@implementation UITextField (hideKeyBoard)
/** * 延时注销第一响应者 * * @param block 延时后执行的事件 * * @return 判断 */
-(BOOL)resignFirstResponder:(resignFirstResponderBlock)block{
dispatch_async(dispatch_get_global_queue(0, 0), ^{
double delayInSeconds = 0.1;
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
dispatch_after(popTime, dispatch_get_main_queue(), ^{
[self resignFirstResponder];
block(YES);
});
});
return YES;
}
@end
以上就是短视频系统源码,点击屏幕空白处键盘不自动收起, 更多内容欢迎关注之后的文章
边栏推荐
- 迷失在Mysql的锁世界
- [optimtool.unconstrained] unconstrained optimization toolbox
- Application practice | Shuhai supply chain construction of data center based on Apache Doris
- Energy momentum: how to achieve carbon neutralization in the power industry?
- Nat. Commun.| 机器学习对可突变的治疗性抗体的亲和力和特异性进行共同优化
- 283. 移动零-c与语言辅助数组法
- 删库不必跑路!详解 MySQL 数据恢复
- 开户哪家券商比较好?网上开户安全吗
- Super detailed tutorial, an introduction to istio Architecture Principle and practical application
- 1807. 替换字符串中的括号内容
猜你喜欢
Redis has three methods for checking big keys, which are necessary for optimization
常用的开源无代码测试工具
El tree combined with El table, tree adding and modifying operations
Use blocconsumer to build responsive components and monitor status at the same time
什么是商业智能(BI),就看这篇文章足够了
Radio and television Wuzhou signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
Why do you have to be familiar with industry and enterprise business when doing Bi development?
QT - plot other problems
VS2019 C# release下断点调试
Enabling digital economy Fuxin software attends the BRICs high level Forum on Sustainable Development
随机推荐
Is it safe to open an account in the stock of Caicai college? Can you only open an account by digging money?
Zhiyang innovation signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
What is the stock account opening process? Is it safe to use flush mobile stock trading software?
挖财学院股票开户安全吗?开户只能在挖财开户嘛?
网上开户哪家证券公司佣金最低,我要开户,网上开户安全吗
我在linux里面 通过调用odspcmd 查询数据库信息 怎么静默输出 就是只输出值 不要这个
Relational database
文件读取写入
HUAWEI nova 10系列发布 华为应用市场筑牢应用安全防火墙
Bookmark
广电五舟与华为签署合作协议,共同推进昇腾AI产业持续发展
File read write
new IntersectionObserver 使用笔记
服装企业为什么要谈信息化?
Deveco device tool 3.0 release brings five capability upgrades to make intelligent device development more efficient
QT—绘制其他问题
Locust性能测试 —— 环境搭建及使用
New intersectionobserver usage notes
gtest从一无所知到熟练使用(2)什么是测试夹具/装置(test fixture)
Force buckle 2_ 1480. Dynamic sum of one-dimensional array