English 中文(简体)
ios 拖放库
原标题:ios drag and drop library
  • 时间:2012-05-24 10:08:20
  •  标签:
  • ios
  • ipad

我在寻找任何图书馆,让拖放功能像iPad上的停车场带的轨迹一样。有人知道有好的图书馆(开放源码或商业图书馆)存在吗?

最佳回答

我们创建了一个自成一体的 IOS 拖放图书馆,

https://github.com/Oblong/ObDragDrop" rel=“no follow'>https://github.com/Oblong/ObDragDrop

如果你认为它有用或有需要改进的具体领域,请告诉我!

问题回答

我还建立了自己的静态图书馆(我不知道OBDragDrop)

https://github.com/jmos/JCMDrragging" rel=“no follow'>https://github.com/jmos/JCMDragging (与 ARC 兼容)

库中反射通用的 UIKit 模式, 因此大部分界面实际上属于 UIKit 类的分类 :

  • Dragging events are handled and forwarded by UIResponder
  • Dragging events are delivered according to hitTest:withDrag: and pointInside:withDrag:
  • Data transfer uses [UIPasteboard draggingPasteboard] and [UIResponder drag:/drop:]

唯一的混凝土类是手势识别者,没有管理人员或初始化人员。

看看样本项目,看看如何使用。

EDIT: 我已经添加了一个读Me文件 。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签