Menu

TDPFUIViewController in embedded form doesn't resize

Kaarigar
2013-08-27
2013-08-28
  • Kaarigar

    Kaarigar - 2013-08-27

    I am using embedded forms that are attached to TDPFUIViewControllers. The top level container in the embedded form is also a TDPFUIViewController. This causes a little problem. If the form is designed for iPhone4, and if it is run on iPhone5, then the TDPFUIViewController doesn't scale to fit the screen even though it is set alClient and vcmScaleToFill. However, if I use TDPFUIView as top level container in the embedded form, then it is sizing ok.

    Is this by design or a bug? I believe any top level control should scale as per its setting as the device screen size it runs on.

    It is very easy to reproduce this behavior on the EmbededFormViewController demo app, just replace the UIView by UIViewController in the uEmbForm2 and set it to alClient and vcmScaleToFill and then run the app.

     

    Last edit: Kaarigar 2013-08-27
  • Fenistil

    Fenistil - 2013-08-27

    Hi!

    According to Apple and this you have to use UIViewController for the top-most view, because this will handle the rotation and maybe the screen size, and use UIViews in lower levels.

    I hope this helps.

    Greetings

     
    • Kaarigar

      Kaarigar - 2013-08-27

      I am using UIViewController as top level container in the main form as well as embedded form. It doesn't scale to the screen. But if I use UIController in th embedded form, it scales.

      I think it shouldn't matter - UIViewController as well as UIController both should scale to the screen.

       
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-08-28

    Hi Kaarigar

    Attach a sample project, please

    Regards

     

    Last edit: Babak Yaghoobi 2013-08-28
    • Kaarigar

      Kaarigar - 2013-08-28

      Here it is. Before you run it, set the Device to iPhone Retina 4 inch in the simulator.

       
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-08-28

    Hi, Kaarigar

    This is a bug in UIViewController.
    Please, make a Bug Ticket, for fixing this issue.

    Regards

     

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.