0
エキスパートiphoneでUIImageViewのパン境界を設定できますか?
私のプロジェクトでは、私は2つの部分に分かれたviewControllerのビューでstoryboard.Soを使用しています 1つ:iAd、2番目:Uiview私のUIImageViewをパンする場所。 handlePanで 私のコード..このケースでは、私を提案してください。..
- (void) handlePanGestures:(UIPanGestureRecognizer*)paramSender{
if (paramSender.state != UIGestureRecognizerStateEnded && paramSender.state != UIGestureRecognizerStateFailed){
CGPoint location = [paramSender locationInView:self.mainView];//here mainView is Pan area..
[paramSender setTranslation:CGPointZero inView:self.mainView];
paramSender.view.center = location; }
}
しかし、私が欲しいものを得るために、私はできない、このコードである