TouchVisualizer Demo movie #potatotips

TouchVisualizer Demo movie #potatotips

#potatotips 2015 May 13 @Wantedly

Presentation about the touch visualization library: TouchVisualizer.
https://github.com/morizotter/TouchVisualizer

4928da44aac0b41a9ea237f66fc11025?s=128

Morita Naoki

May 13, 2015
Tweet

Transcript

  1. 7JTVBMJ[FZPVSUPVDIFT 5PVDI7JTVBMJ[FS QPUBUPUJQT

  2. UXNPSJ[PUUFS HJUIVCNPSJ[PUUFS IUUQTXXXXBOUFEMZDPNVTFST -PWFUSBWFMMJOHBOE4FOUP

  3. )PCCZ(JUIVCXPSLBOEUSBOTMBUJPO

  4. Want to visualize touches at the presentation.

  5. Easily. At once.

  6. Because it is secondary task.

  7. It’s just one line!

  8. Optional

  9. DEMO IUUQTXXXZPVUVCFDPNXBUDI W*2)SC+Q

  10. Cocoapods & Carthage morizotter/TouchVisualizer

  11. None
  12. Multiple fingers supported. Multiple UIWindows supported. Shows touch radius. Shows

    touch duration. Change colors and images of finger points.
  13. How it works

  14. Event dispatching T 1 T 2 T 3 T 1

    T T1 T1 T T2 T2 T2 T2 T3 T3 T2 T3 T3 T UIWindow View Event Same instance
  15. Code

  16. Method Swizzling

  17. Method Swizzling Swizzle only once 1 2

  18. Method Swizzling Injection

  19. Same UITouch object is coming from one finger. Event Handling

  20. NSRunLoopCommonModes IUUQTUBDLPWFSqPXDPNB NSRunLoopCommonModes includes both the default and event tracking

    modes
  21. End