当前位置:网站首页>短视频系统源码,点击屏幕空白处键盘不自动收起
短视频系统源码,点击屏幕空白处键盘不自动收起
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
以上就是短视频系统源码,点击屏幕空白处键盘不自动收起, 更多内容欢迎关注之后的文章
边栏推荐
- 我在linux里面 通过调用odspcmd 查询数据库信息 怎么静默输出 就是只输出值 不要这个
- New intersectionobserver usage notes
- close系统调用分析-性能优化
- 能源势动:电力行业的碳中和该如何实现?
- VS2019 C# release下断点调试
- Interview question 01.08 Zero matrix
- El tree combined with El table, tree adding and modifying operations
- Which securities company has the lowest Commission for opening an account online? I want to open an account. Is it safe to open an account online
- How can the advertising system of large factories be upgraded without the presence of large models
- Locust性能测试 —— 环境搭建及使用
猜你喜欢
Exclusive interview of open source summer | new committer Xie Qijun of Apache iotdb community
力扣98:验证二叉搜索树
TCP协议三次握手过程
gtest从一无所知到熟练使用(3)什么是test suite和test case
能源势动:电力行业的碳中和该如何实现?
i.MX6ULL驱动开发 | 24 - 基于platform平台驱动模型点亮LED
close系统调用分析-性能优化
并发网络模块化 读书笔记转
Kdd2022 | what features are effective for interaction?
QT—双缓冲绘图
随机推荐
Scala download and configuration
电话加密,中间4为****代替
GTEST from ignorance to skillful use (1) GTEST installation
bizchart+slider实现分组柱状图
Redis has three methods for checking big keys, which are necessary for optimization
MongoDB聚合操作总结
湘江鲲鹏加入昇腾万里伙伴计划,与华为续写合作新篇章
HBuilder X 常用的快捷键
QT - plot other problems
Bizchart+slider to realize grouping histogram
Sorting and sharing of selected papers, systems and applications related to the most comprehensive mixed expert (MOE) model in history
PostgreSQL JOIN实践及原理
WebGIS框架---kalrry
Xiangjiang Kunpeng joined the shengteng Wanli partnership program and continued to write a new chapter of cooperation with Huawei
new IntersectionObserver 使用笔记
KDD2022 | 什么特征进行交互才是有效的?
服务线上治理
Cadre WebGIS - kalrry
GTEST from ignorance to proficiency (3) what are test suite and test case
Force buckle_ Palindrome number