当前位置:网站首页>Short video system source code, click the blank space of the screen, the keyboard does not automatically stow
Short video system source code, click the blank space of the screen, the keyboard does not automatically stow
2022-07-04 22:18:00 【Cloudleopard network technology】
Short video system source code , Click on the blank space of the screen and the keyboard will not be automatically stowed
#import <UIKit/UIKit.h>
typedef void(^resignFirstResponderBlock)(BOOL hided);
@interface UITextField (hideKeyBoard)
// Delay logout of the first responder
-(BOOL)resignFirstResponder:(resignFirstResponderBlock)block;
@end
#import "UITextField+hideKeyBoard.h"
@implementation UITextField (hideKeyBoard)
/** * Delay logout of the first responder * * @param block Events executed after delay * * @return Judge */
-(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
The above is the source code of short video system , Click on the blank space of the screen and the keyboard will not be automatically stowed , More content welcome to follow the article
边栏推荐
- NAACL-22 | 在基于Prompt的文本生成任务上引入迁移学习的设置
- 常用的开源无代码测试工具
- What is business intelligence (BI), just look at this article is enough
- 283. 移动零-c与语言辅助数组法
- Redis has three methods for checking big keys, which are necessary for optimization
- Enabling digital economy Fuxin software attends the BRICs high level Forum on Sustainable Development
- 时空预测3-graph transformer
- What is the stock account opening process? Is it safe to use flush mobile stock trading software?
- MongoDB中的索引操作总结
- 2022-07-04:以下go语言代码输出什么?A:true;B:false;C:编译错误。 package main import “fmt“ func main() { fmt.Pri
猜你喜欢

The use of complex numbers in number theory and geometry - Cao Zexian

TCP协议三次握手过程

Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel

Sorting and sharing of selected papers, systems and applications related to the most comprehensive mixed expert (MOE) model in history

将QA引入软件开发生命周期是工程师要遵循的最佳实践

Scala下载和配置

使用 BlocConsumer 同时构建响应式组件和监听状态

达梦数据凭什么被称为国产数据库“第一股”?

30余家机构联合发起数字藏品行业倡议,未来会如何前进?

With this PDF, we finally got offers from eight major manufacturers, including Alibaba, bytek and Baidu
随机推荐
TCP protocol three times handshake process
Concurrent optimization summary
挖财学院股票开户安全吗?开户只能在挖财开户嘛?
制作条形码的手机App推荐
sqlserver对数据进行加密、解密
WebGIS框架---kalrry
PMO:比较25种分子优化方法的样本效率
电话加密,中间4为****代替
AscendEX 上线 Walken (WLKN) - 一款卓越领先的“Walk-to-Earn”游戏
力扣3_383. 赎金信
【愚公系列】2022年7月 Go教学课程 003-IDE的安装和基本使用
智洋创新与华为签署合作协议,共同推进昇腾AI产业持续发展
置信区间的画法
# 2156. 查找给定哈希值的子串-后序遍历
短视频系统源码,点击屏幕空白处键盘不自动收起
1807. 替换字符串中的括号内容
QT - double buffer plot
NAACL-22 | 在基于Prompt的文本生成任务上引入迁移学习的设置
idea中pom.xml依赖无法导入
HUAWEI nova 10系列发布 华为应用市场筑牢应用安全防火墙