Get Updates By E-mail 

Article Written By:
Johann Dowa

Library Allowing You To Easily Add Drag And Drop Between UIViews – Even Popover Views

I previously mentioned a UICollectionView extension that allows you to add drag and drop reordering to a UICollectionView grid called LXReorderableCollectionViewFlowLayout.

If you’d prefer not to go the UICollectionView route, or don’t need reordering here’s an open source library that allows you to easily enable drag and drop between any UIViews, even UIPopover views called OBDragDrop from Oblong Industries.

As the readme states:

– Drag and drop between any UIViews
– Any view can be draggable, and any view can be a drop target
– Visuals exists on a UIWindow that sits on top of the app
– Various events for different stages of a drag and drop gesture

Included is an example demonstrating the drag and drop functionality between views including popovers.

You can find OBDragDrop on Github here.

A nice easy way to implement drag and drop functionality between UIViews.

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.