It should be quite easy, you need your parent view controller (i.e. the orange controller ) to add the subview of your new view controller. You could normally do that by [self.parentViewController addSubview:boxView.view]
. But since you are using ECSlidingViewController , you could do it like this:
[self.slidingViewController.topViewController.view addSubview:boxView.view]
.
Of course then you will need to adjust your new ViewController's frame accordingly.