• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Drag and Drop on iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag and Drop on iOS


  • Subject: Drag and Drop on iOS
  • From: Graham Cox <email@hidden>
  • Date: Thu, 11 Aug 2016 21:49:00 +1000

Hi all,

I have a small app that works on Mac, and I’m further developing an iOS version of it.

I’m wondering what the general approach is for dragging an object from one view to another in iOS is. On the Mac version, I simply use the usual drag image+pasteboard approach, but on iOS this appears not to be supported. Both of the views in question are subviews of the same window (obviously, since iOS doesn’t have multiple windows) so that probably simplifies things. Is it just a case of moving a CALayer belonging to a common ancestor view and then doing whatever is needed to communicate between the views when the drag completes? Or is there something in UIKit that handles some of that generically? It wasn’t obvious where to look; I didn’t see anything in UIView.

—Graham



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Drag and Drop on iOS
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Re: Objective-C basics - (Why NSNumber conforms to NSCopying protocol)
  • Next by Date: Re: Objective-C basics - (Why NSNumber conforms to NSCopying protocol)
  • Previous by thread: Re: Xcode 8 - XCODE_VERSION_MAJOR causes compilation issue
  • Next by thread: Re: Drag and Drop on iOS
  • Index(es):
    • Date
    • Thread