当前位置:网站首页>短视频系统源码,点击屏幕空白处键盘不自动收起
短视频系统源码,点击屏幕空白处键盘不自动收起
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
以上就是短视频系统源码,点击屏幕空白处键盘不自动收起, 更多内容欢迎关注之后的文章
边栏推荐
- Cadre WebGIS - kalrry
- What is business intelligence (BI), just look at this article is enough
- Xiangjiang Kunpeng joined the shengteng Wanli partnership program and continued to write a new chapter of cooperation with Huawei
- 开户哪家券商比较好?网上开户安全吗
- 什么是商业智能(BI),就看这篇文章足够了
- A large number of virtual anchors in station B were collectively forced to refund: revenue evaporated, but they still owe station B; Jobs was posthumously awarded the U.S. presidential medal of freedo
- 置信区间的画法
- 使用 BlocConsumer 同时构建响应式组件和监听状态
- MySQL存储数据加密
- Open3d surface normal vector calculation
猜你喜欢

Why do you have to be familiar with industry and enterprise business when doing Bi development?

HUAWEI nova 10系列发布 华为应用市场筑牢应用安全防火墙

AscendEX 上线 Walken (WLKN) - 一款卓越领先的“Walk-to-Earn”游戏

NAACL-22 | 在基于Prompt的文本生成任务上引入迁移学习的设置

VS2019 C# release下断点调试

MongoDB聚合操作总结

What is business intelligence (BI), just look at this article is enough

QT - double buffer plot

Nat. Commun.| 机器学习对可突变的治疗性抗体的亲和力和特异性进行共同优化

Energy momentum: how to achieve carbon neutralization in the power industry?
随机推荐
Nat. Commun.| Machine learning jointly optimizes the affinity and specificity of mutagenic therapeutic antibodies
Convolutional neural network model -- lenet network structure and code implementation
Why should garment enterprises talk about informatization?
AcWing 2022 每日一题
Case sharing | integrated construction of data operation and maintenance in the financial industry
Enabling digital economy Fuxin software attends the BRICs high level Forum on Sustainable Development
new IntersectionObserver 使用笔记
好用app推荐:扫描二维码、扫描条形码并查看历史
Cloudcompare & open3d DBSCAN clustering (non plug-in)
服务线上治理
Use blocconsumer to build responsive components and monitor status at the same time
广电五舟与华为签署合作协议,共同推进昇腾AI产业持续发展
GTEST from ignorance to proficient use (2) what is test fixture
湘江鲲鹏加入昇腾万里伙伴计划,与华为续写合作新篇章
Implementation rules for archiving assessment materials of robot related courses 2022 version
DevEco Device Tool 3.0 Release带来5大能力升级,让智能设备开发更高效
TCP protocol three times handshake process
B站大量虚拟主播被集体强制退款:收入蒸发,还倒欠B站;乔布斯被追授美国总统自由勋章;Grafana 9 发布|极客头条
挖财学院股票开户安全吗?开户只能在挖财开户嘛?
How to implement Devops with automatic tools