Custom Tabbar: adjusting the view of the displayed view controller so it is resized to fit above the tabbar
<p>I need to create a customTabbar in one of my app. I subclassed UITabbarcontroller by adding a custom view to it. I made the tabbar hidden by setting</p>

<pre><code>self.tabbar.hidden = True;
</code></pre>

<p>I added buttons on the customView, and on click of these buttons am handling the switching between the tabs.</p>

<p>The issue that am facing is that the height of my custom tabbar is not equal to (more than) the standard tabbar height, so I need to clip my viewController's view so that it doesn't hide behind the custom tabbar</p>

<p>I tried setting the frame property of viewController's view (see below) in viewDidLoad and viewDidAppear methods, but it doesn't work that way.</p>

<pre><code>[self.view setFrame: CGRectMake(self.view.frame.origin.x, self.view.frame.origin.x, self.view.frame.size.width, 400)] 
</code></pre>

<p>where 400 = 480 - height of my custom tabbar</p>

<p>I hope am clear with my question..</p>

<p>Thanks in advance</p>
