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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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.
Hi Kaarigar
Attach a sample project, please
Regards
Last edit: Babak Yaghoobi 2013-08-28
Here it is. Before you run it, set the Device to iPhone Retina 4 inch in the simulator.
Hi, Kaarigar
This is a bug in UIViewController.
Please, make a Bug Ticket, for fixing this issue.
Regards