Sorry i cant comment so answering from this I think you are already placed an UIpicker view in your view concept is same as @xman said. If you didnt place picker view place it
then in .h create property for picker view
@interface ViewController : UIViewController
{
IBOutlet UIPickerView *statepicker;
}
@property (weak, nonatomic) IBOutlet UIView *statepickerview;
in .m first synthesize
@implementation ViewController
@synthesize statepickerview;
in viewdidLoad initially set frame of picker view out of view example
- (void)viewDidLoad
{
statepickerview.frame = CGRectMake(-9, 506, 367, 263);
[super viewDidLoad];
}
then in action call the frame to visible postion
- (IBAction)ButtonPress:(id)sender {
statepickerview.frame = CGRectMake(0, 250,321, 260);
}
when you press button if it is not visible then try to change the co-ordinates
If this not works properly check this link create view and place the picker view inside the custom view and change the frame size of the view
see this link surely it will help