我有一堆在gridview 中生成的imageview。但现在我希望每个图像视图都可以对另一个屏幕进行转场。有人知道我该怎么做吗?这是我如何生成图像视图并将其放入网格的代码。
UIImageView * myView = [[UIImageView alloc] initWithImage:myImage];
CGRect rect = myView.frame;
rect.origin.x = xCurrent;
rect.origin.y = yCurrent;
myView.frame = rect;
myView.tag = cellCounter;
[gridContainerView addSubview:myView];
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];
myView.userInteractionEnabled = YES;
[myView addGestureRecognizer:tap];
请帮忙
亲切的问候