DragAndDrop-onZone:将视图从 UIScrollView 拖放到“区域”中

时间:2021-06-05 09:09:18
【文件属性】:
文件名称:DragAndDrop-onZone:将视图从 UIScrollView 拖放到“区域”中
文件大小:374KB
文件格式:ZIP
更新时间:2021-06-05 09:09:18
Objective-C 拖放到区域 1 - 它的作用 这个原型的目的: 从启用滚动的 UIScrollView 拖放 UIView 根据可用空间调整所有组件的大小以显示图像。 始终适合屏幕。 (见 ScalableView 协议) 我尝试使用来实现我的目标。 由于没有什么适合我,所以我从头开始创建了自己的组件。 2 - 它是如何工作的 整个组件是一个 DragDropManagerVC。 它需要一些参数: “DragableStaticContainer”列表。 这是您可以拖放的视图 一个 UIImage。 这是要显示的图像 “ZoneView”的列表。 它是图像上的一个区域,您可以将 DragableStaticContainer 放入其中 查看代码源并阅读 DragDropManagerVC 是如何创建的: - (void)viewDidLoad { [super viewDidLoad]
【文件预览】:
DragAndDrop-onZone-master
----.gitignore(306B)
----README_src()
--------drag-and-drop.jpg(141KB)
----DragAndDrop()
--------main.m(337B)
--------ViewController.m(6KB)
--------AppDelegate.h(365B)
--------DragAndDrop-Info.plist(1KB)
--------Default@2x.png(16KB)
--------AppDelegate.m(3KB)
--------Default.png(6KB)
--------DragAndDrop-Prefix.pch(325B)
--------Default-568h@2x.png(18KB)
--------ViewController.h(358B)
--------en.lproj()
--------img()
----DragAndDrop.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(29KB)
----README.md(2KB)
----Class()
--------EnableDisableView.m(3KB)
--------StaticView.m(813B)
--------ImageScalableView.m(474B)
--------MultiZoneVC.h(625B)
--------LabelScalableView.m(1KB)
--------DragableListVC.m(4KB)
--------DragableView.h(2KB)
--------EnableDisableView.h(516B)
--------ImageScalableView.h(263B)
--------ContentReceiverView.h(620B)
--------PassthroughView.m(499B)
--------ZoneView.h(668B)
--------LabelScalableView.h(285B)
--------DragableStaticContainer.m(600B)
--------DragDropManagerVC.h(726B)
--------DragableView.m(3KB)
--------MultiZoneVC.m(3KB)
--------DragDropManagerVC.m(6KB)
--------DragableStaticContainer.h(486B)
--------ZoneView.m(2KB)
--------StaticView.h(384B)
--------DragableListVC.h(751B)
--------PassthroughView.h(208B)
--------ContentReceiverView.m(2KB)

网友评论