adding uiview as a subview to the main view
<p>i want to add an <code>UIView</code> for small size as a subview to existing view.</p>

<p>i have a <code>UIViewController</code> pushed with a nib name which is the main view, i am trying to create an object of <code>UIView</code> and alloc it with dimension with the following code in the viewcontroller's <code>viewDidLoad</code> methoad</p>

<pre><code>UIView *view = [[UIView alloc] init];
</code></pre>

<p>but the idea is not suggesting the alloc on <code>UIView</code> and throwing an error if i forcefully type and run</p>

<p>please help me out with this </p>
