ナビゲーションコントローラーのアニメーションを、新しいビューをビューにスライドさせるだけでなく、新しいビューをスライドさせるときに現在のビューをスライドさせるようなものに変更できるかどうか悩んでいます...
私はここにこの機能を持っています。それは私のスワイプを検出し、通常のナビゲーションコントローラーが行うようにビューをアニメーション化するだけです。しかし、私はあなたの助けを借りて何か他のものを理解できることを望んでいます。
// Need to change this to work with viewArray
- (void)swipedScreen:(UISwipeGestureRecognizer*)gesture {
//Left swipe
if (gesture.direction == UISwipeGestureRecognizerDirectionLeft)
{
if (viewCount == 0)
{
viewCount += 1;
// Load a detial view into the (sub)NavController
DetailViewControllerA *detailViewA = [[DetailViewControllerA alloc] initWithNibName:@"DetailViewControllerA" bundle:[NSBundle mainBundle]];
[otherNav pushViewController:detailViewA animated:YES];
}
}
//Right swipe
else if (gesture.direction == UISwipeGestureRecognizerDirectionRight)
{
if (viewCount == 1)
{
viewCount -= 1;
[self.otherNav popViewControllerAnimated:YES];
}
}
}