当前位置:网站首页>短视频系统源码,点击屏幕空白处键盘不自动收起
短视频系统源码,点击屏幕空白处键盘不自动收起
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
以上就是短视频系统源码,点击屏幕空白处键盘不自动收起, 更多内容欢迎关注之后的文章
边栏推荐
- From repvgg to mobileone, including mobileone code
- 制作条形码的手机App推荐
- 解决异步接口慢导致的数据错乱问题
- 《命令行上的数据科学第二版》校对活动重新启动
- Acwing 2022 daily question
- Which securities company is better to open an account? Is online account opening safe
- 使用 BlocConsumer 同时构建响应式组件和监听状态
- AcWing 2022 每日一题
- Spatiotemporal prediction 3-graph transformer
- 挖财学院股票开户安全吗?开户只能在挖财开户嘛?
猜你喜欢

Master the use of auto analyze in data warehouse

QT—绘制其他问题

Enabling digital economy Fuxin software attends the BRICs high level Forum on Sustainable Development

TCP协议三次握手过程

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

i. Mx6ull driver development | 24 - platform based driver model lights LED

机器学习笔记 - 互信息Mutual Information

Use blocconsumer to build responsive components and monitor status at the same time

Machine learning notes mutual information

Convolutional neural network model -- lenet network structure and code implementation
随机推荐
《命令行上的数据科学第二版》校对活动重新启动
Relational database
HDU - 1078 FatMouse and Cheese(记忆化搜索DP)
常用的开源无代码测试工具
我在linux里面 通过调用odspcmd 查询数据库信息 怎么静默输出 就是只输出值 不要这个
From repvgg to mobileone, including mobileone code
好用app推荐:扫描二维码、扫描条形码并查看历史
# 2156. 查找给定哈希值的子串-后序遍历
TCP protocol three times handshake process
HDU - 2859 Phalanx(DP)
智洋创新与华为签署合作协议,共同推进昇腾AI产业持续发展
VS2019 C# release下断点调试
Open3d surface normal vector calculation
Representation of confidence interval
AscendEX 上线 Walken (WLKN) - 一款卓越领先的“Walk-to-Earn”游戏
并列图的画法,多排多列
PMO:比较25种分子优化方法的样本效率
Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel
DevEco Device Tool 3.0 Release带来5大能力升级,让智能设备开发更高效
Cadeus has never stopped innovating. Decentralized edge rendering technology makes the metauniverse no longer far away