Menu

setModalTransitionStyle not working?

Kaarigar
2013-08-24
2013-08-24
  • Kaarigar

    Kaarigar - 2013-08-24

    I am trying to present a UIViewController using the flip transition style - this is how I am doing it:

    MainView and PuzzleView are both UIViewController and on the same form, and set to alClient. To begin with, the MainView.Visible := True and PuzzleView.Visible := False; USer presses a button to present PuzzleView as shown below:

    PuzzlwView.Visible := True;
    PuzzleView.FUIViewController.setModalTransitionStyle(UIModalTransitionStyleFlipHorizontal);
    MainView.FUIViewController.presentModalViewController(PuzzleView.FUIViewController, True);

    However, the PuzzleView is is always presented without any transition presentation. But when the PuzzleView is dismissed, the MainView is presented with flip transition.

    Can someone suggest if I am doing anything wrong here? And how to present with transition? Thanks!

     
  • Kaarigar

    Kaarigar - 2013-08-24

    Well, the default transition UIModalTransitionStyleCoverVertical and UIModalTransitionStyleCrossDissolve work but not the UIModalTransitionStyleFlipHorizontal.

     

    Last edit: Kaarigar 2013-08-24

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.