当前位置:网站首页>短视频系统源码,点击屏幕空白处键盘不自动收起
短视频系统源码,点击屏幕空白处键盘不自动收起
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
以上就是短视频系统源码,点击屏幕空白处键盘不自动收起, 更多内容欢迎关注之后的文章
边栏推荐
- 机器学习笔记 - 互信息Mutual Information
- HUAWEI nova 10系列发布 华为应用市场筑牢应用安全防火墙
- File read write
- Huawei Nova 10 series released Huawei application market to build a solid application security firewall
- Kdd2022 | what features are effective for interaction?
- 能源势动:电力行业的碳中和该如何实现?
- [advanced C language] array & pointer & array written test questions
- 玩转gRPC—深入概念与原理
- WebGIS框架---kalrry
- Exclusive interview of open source summer | new committer Xie Qijun of Apache iotdb community
猜你喜欢
The use of complex numbers in number theory and geometry - Cao Zexian
可视化任务编排&拖拉拽 | Scaleph 基于 Apache SeaTunnel的数据集成
【米哈游2023届秋招】开启【校招唯一专属内推码EYTUC】
Radio and television Wuzhou signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
广电五舟与华为签署合作协议,共同推进昇腾AI产业持续发展
TLA+ 入门教程(1):形式化方法简介
Use blocconsumer to build responsive components and monitor status at the same time
DevEco Device Tool 3.0 Release带来5大能力升级,让智能设备开发更高效
QT - plot other problems
抖音实战~评论数量同步更新
随机推荐
[advanced C language] array & pointer & array written test questions
凭借了这份 pdf,最终拿到了阿里,字节,百度等八家大厂 offer
Sorting and sharing of selected papers, systems and applications related to the most comprehensive mixed expert (MOE) model in history
Nat. Commun.| 机器学习对可突变的治疗性抗体的亲和力和特异性进行共同优化
赋能数字经济 福昕软件出席金砖国家可持续发展高层论坛
力扣98:验证二叉搜索树
Energy momentum: how to achieve carbon neutralization in the power industry?
Zhiyang innovation signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
[optimtool.unconstrained] unconstrained optimization toolbox
Is it safe to open an account in the stock of Caicai college? Can you only open an account by digging money?
MySQL存储数据加密
面试题 01.01. 判定字符是否唯一
Ascendex launched Walken (WLKN) - an excellent and leading "walk to earn" game
从RepVgg到MobileOne,含mobileone的代码
# 2156. Find the substring of the given hash value - post order traversal
leetcode 72. Edit Distance 编辑距离(中等)
gtest从一无所知到熟练使用(3)什么是test suite和test case
Radio and television Wuzhou signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
复数在数论、几何中的用途 - 曹则贤
Relational database