iOS adding a view of view controller but it's Not fully flushed to top -
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
Post a Comment