I'm trying to realize an app that requires to move an UIImageView, that is put behind a transparent grid. How can I make it? This is the code:
[[self view] addSubview:myimage];
myimage.userInteractionEnabled = YES;
UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)];
[panGesture setDelegate:self];
[myimage addGestureRecognizer:panGesture];
[self.view addSubview:over];
The transparent layer is "over". If it is not added to the view, my pan method works. When I add it, nothing works. So, how can I move my image behind the transparent grid? Thank you everybody.