当前位置:网站首页>短视频系统源码,点击屏幕空白处键盘不自动收起
短视频系统源码,点击屏幕空白处键盘不自动收起
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
以上就是短视频系统源码,点击屏幕空白处键盘不自动收起, 更多内容欢迎关注之后的文章
边栏推荐
- Go language loop statement (3 in Lesson 10)
- Zhiyang innovation signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
- [optimtool.unconstrained] unconstrained optimization toolbox
- KDD2022 | 什么特征进行交互才是有效的?
- Nat. Commun.| 机器学习对可突变的治疗性抗体的亲和力和特异性进行共同优化
- ACM Multimedia 2022 | 视觉语言预训练模型中社会偏见的反事实衡量和消除
- QT - double buffer plot
- The drawing method of side-by-side diagram, multi row and multi column
- 从RepVgg到MobileOne,含mobileone的代码
- 【米哈游2023届秋招】开启【校招唯一专属内推码EYTUC】
猜你喜欢

并发优化总结

Nat. Commun.| Machine learning jointly optimizes the affinity and specificity of mutagenic therapeutic antibodies

gtest从一无所知到熟练使用(3)什么是test suite和test case

从RepVgg到MobileOne,含mobileone的代码

智洋创新与华为签署合作协议,共同推进昇腾AI产业持续发展

Redis has three methods for checking big keys, which are necessary for optimization

GTEST from ignorance to proficiency (3) what are test suite and test case
【米哈游2023届秋招】开启【校招唯一专属内推码EYTUC】

B站大量虚拟主播被集体强制退款:收入蒸发,还倒欠B站;乔布斯被追授美国总统自由勋章;Grafana 9 发布|极客头条

复数在数论、几何中的用途 - 曹则贤
随机推荐
283. 移动零-c与语言辅助数组法
PMO:比较25种分子优化方法的样本效率
HDU - 1078 fatmouse and cheese (memory search DP)
Sorting and sharing of selected papers, systems and applications related to the most comprehensive mixed expert (MOE) model in history
服装企业为什么要谈信息化?
# 2156. 查找给定哈希值的子串-后序遍历
PostgreSQL服务端编程聚合和分组
保证接口数据安全的10种方案
close系统调用分析-性能优化
做BI开发,为什么一定要熟悉行业和企业业务?
TLA+ 入门教程(1):形式化方法简介
AcWing 2022 每日一题
Huawei Nova 10 series released Huawei application market to build a solid application security firewall
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
Solve the problem of data disorder caused by slow asynchronous interface
GTEST from ignorance to proficiency (4) how to write unit tests with GTEST
Convolutional neural network model -- lenet network structure and code implementation
Play with grpc - go deep into concepts and principles
New intersectionobserver usage notes
How to transfer to software testing, one of the high paying jobs in the Internet? (software testing learning roadmap attached)