xifenglang / jkkeyboardobserver Goto Github PK
View Code? Open in Web Editor NEWiOS全局监听键盘活动
iOS全局监听键盘活动
真机运行的时候,会出现警告。
Main Thread Checker: UI API called on a background thread: -[UIButton canBecomeFocused]
PID: 8939, TID: 3103013, Thread name: (none), Queue name: kKeyboardManagerRespondersKey, QoS: 0
Backtrace:
4 Platform_Mobile 0x0000000104597fac -[UIView(JKFirstResponder) jk_canBecameFirstResponder] + 40
5 Platform_Mobile 0x000000010459835c __53-[UIView(JKFirstResponder) jk_traverseResponderViews]_block_invoke + 96
6 CoreFoundation 0x0000000185ad9b08 + 216
7 Platform_Mobile 0x0000000104598238 -[UIView(JKFirstResponder) jk_traverseResponderViews] + 224
8 Platform_Mobile 0x000000010454cc90 __46-[JKKeyboardManager jk_traverseResponderViews]_block_invoke + 132
9 libdispatch.dylib 0x0000000108d0d49c _dispatch_call_block_and_release + 24
10 libdispatch.dylib 0x0000000108d0d45c _dispatch_client_callout + 16
11 libdispatch.dylib 0x0000000108d1a800 _dispatch_continuation_pop + 592
12 libdispatch.dylib 0x0000000108d1909c _dispatch_async_redirect_invoke + 628
13 libdispatch.dylib 0x0000000108d1eb54 _dispatch_root_queue_drain + 616
14 libdispatch.dylib 0x0000000108d1e880 _dispatch_worker_thread3 + 136
15 libsystem_pthread.dylib 0x000000018582b130 _pthread_wqthread + 1268
16 libsystem_pthread.dylib 0x000000018582ac30 start_wqthread + 4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.