custom view with buttons over the picker view
<p>Trying to create custom view with buttons than pickerview. Problem i m having is that custom view is displaying but not buttons</p>

<pre><code>UIView *view=[[[UIView alloc]initWithFrame:CGRectMake(0,200,320,300)]autorelease];

view.backgroundColor=[UIColor grayColor];

UIButton *myButton = [UIButton buttonWithType:UIButtonTypeCustom];

[myButton addTarget:self action:@selector(dismissView:) forControlEvents:UIControlEventTouchUpInside];

myButton.frame = CGRectMake(50, 300, 60, 50);

[myButton.layer setMasksToBounds:YES];

[myButton.layer setCornerRadius:10.0f];

[myButton setTitle:@"English" forState:UIControlStateNormal];

myButton.backgroundColor = [UIColor whiteColor];

[self.view addSubview:view];

[self.view addSubview:myButton];
</code></pre>

<p>Any idea what i m missing here.</p>
