mardi 14 octobre 2014

Add container view to navigation controller


Vote count:

0




I want to create a container view which has some views on it. I managed to get this working with Auto Layout. Now I want to place this container in a UINavigationController. I did this in the iOS Designer but the following code doesn't work anymore (it works without navigation controller):



HalfTableViewController testController1 = new HalfTableViewController ();
this.AddChildViewController (testController1);
testController1.View.Frame = View.Bounds;
this.View.AddSubview (testController1.View);


It's in C# but it shouldn't matter if you are not familiar with it. I want to know how I can use the view of the navigation controller as container view on which I can add my views. Currently, I see the navigation bar but the view is a black screen. I tried a few things but I don't know how can I get this working. Your solution can be of course in Objective-C.



asked 1 min ago

testing

2,657






Add container view to navigation controller

Aucun commentaire:

Enregistrer un commentaire