iOS adding a view of view controller but it's Not fully flushed to top -


enter image description here

i added view of view controller using

 [self.view addsubview view controller.view]; 

but picture indicates, it's flushed top.

the underneath view controller has navigation bar.

you need position new view controller's view specifying frame. otherwise don't expect, now.

depending on want, be:

controller.view.frame = self.view.bounds; 

this overlap current vc's view new vc's view.

or change necessary depending on need.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -