透明なグリッドの後ろにある UIImageView を移動する必要があるアプリを実現しようとしています。どうすれば作れますか?これはコードです:
[[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];
透明レイヤーは「上」です。ビューに追加されていない場合、私のパン メソッドは機能します。追加すると、何も機能しません。では、透明なグリッドの背後に画像を移動するにはどうすればよいですか? 皆さん、ありがとうございます。