ビューコントローラーで UISwipeGestureRecognizer を使用しています。左または右にスワイプすると、別のビューがロードされて画面に表示されます。
トランジションを追加するにはどうすればよいですか。ビューは、遷移を処理するメインの ViewController 内にある ScrollView 内にロードされています。
MonoTouch.UIKit.UISwipeGestureRecognizer sgrLeft = new MonoTouch.UIKit.UISwipeGestureRecognizer();
MonoTouch.UIKit.UISwipeGestureRecognizer sgrRight = new MonoTouch.UIKit.UISwipeGestureRecognizer();
// add the target to it, we put the instance itself of the controller
// and the class instance selector
sgrLeft.AddTarget(this, new Selector("HandleSwipe"));
sgrRight.AddTarget(this, new Selector("HandleSwipe"));
// add the swipe direction, there are 4 of them (left, right, up, down). If other than one swipe is
// needed then more recognizers must be defined and added to the view - each for the direction
sgrLeft.Direction = UISwipeGestureRecognizerDirection.Left;
sgrRight.Direction = UISwipeGestureRecognizerDirection.Right;
// also assign the delegate
sgrLeft.Delegate = new Helpers.SwipeRecognizerDelegate();
sgrRight.Delegate = new Helpers.SwipeRecognizerDelegate();
// and last, add the recognizer to this view to take actions
this._scrollView.AddGestureRecognizer(sgrLeft);
this._scrollView.AddGestureRecognizer(sgrRight);