Multible Forms

Hi All,


what is the best practice to use different UIViewController in multiple forms? Unfortunately I cannot find any examples.

I want to use multiple Forms with an own UIViewController on it. There is a UINavigationController in the Mainform which i use for navigation.

I use MainUINavigationController.pushViewController(TTMSFMXNativeUIViewController1.ViewController, true); to navigate to the second or third UIViewController.

Is it the right way? What is the best place to free the childform after pressing the back-button? 

Thanks in advance

Arek

Hi,


When the form is not created the views are not initialized, so you could look at the method Initialize, before pushing the viewcontroller from another form. It's unclear however how the destroy mechanism works, but calling DisposeOf and setting the form to nil, should destroy the form and it's childs.