Hello,
I have a the following piece of code:
-(IBAction)routePicker
{
UIView *myView = [[UIView alloc] initWithFrame:CGRectMake(0, 264, 320, 216)];
UIPickerView *thePickerView = [[UIPickerView alloc] initWithFrame:CGRectMake(0,0,320,216)];
thePickerView.dataSource = self;
thePickerView.delegate = self;
[myView addSubview:thePickerView];
[self.view addSubview:myView];
}
this creates a subview of the UIPickerView, which contains predefined items I added.
At the moment this IBAction is linked to a custom button, so when I click on the button it loads the subview. I want to text box instead of a custom button. So when I click/tap on the text box my UIPickerView should load in the subview.
Regards, Stephen