我创建了一组图像,它们从图像视图开始。用户可以使用手势拾取图像并将它们拖放到单独的图像视图中。他们可以来回移动它们,它们可以自己洗牌和组织,一切都很好。
但我不知道他们移到了哪个图像视图中。如何识别哪个图像位于哪个图像视图中。我可以查询图像视图中的内容吗?
我查看了标签,但这并没有太大帮助。
我这样生成数组
NSArray *pngs = [NSArray arrayWithObjects:@"red", @"blue", @"green", @"yellow", @"purple", @"orange", @"black", @"white", nil];
for (NSString *png in pngs) {
UIImage *draggableImage = UIImageWithBundlePNG(png);
UIImageView *draggableImageView = [[UIImageView alloc] initWithImage: draggableImage];
SEDraggable *draggable = [[SEDraggable alloc] initWithImageView: draggableImageView];
[self configureDraggableObject: draggable];
甚至不知道从哪里开始。