Upgrade to Pro — share decks privately, control downloads, hide ads and more …

InterApp DnD in iOS 9

matuyuji
September 30, 2015

InterApp DnD in iOS 9

iOS 9 の split view でアプリ間でのドラッグ&ドロップのデモアプリの紹介と実装についての解説

matuyuji

September 30, 2015
Tweet

More Decks by matuyuji

Other Decks in Programming

Transcript

  1. *1$ w 1BTUFCPBSE w $'.FTTBHF1PSU X"QQ(SPVQT*%  w .BDI1PSU mach_msg_send

     w %BSXJO/PUJpDBUJPO w 4IBSFE6TFS%FGBVMUT X"QQ(SPVQT*%
  2. 1BTUFCPBSE 5JNFS UPPMBUFUPSFDFJWF6*1BTUFCPBSE$IBOHFE/PUJpDBUJPO let p = touches.first!.locationInView(view) myPasteboard.string = "M,\(Int(p.x)),\(Int(p.y))"

    dispatch_source_set_timer(timer, now, USEC_PER_SEC * 50, 0) dispatch_source_set_event_handler(timer) { () -> Void in if let pb = UIPasteboard(name: otherID, create: false) { : } } dispatch_resume(timer) 4PVSDF"QQ VTFTOBNFEQBTUFCPBSE %FTU"QQ LOPXTTPVSDFBQQ`TQBTUFCPBSEOBNF