How to Show UIPickerView when selecting UITextField
问题 Here is a screenshot of what I did till now: So what I am trying to do is when you select "pick a name" Textfield I need a Picker to show up, with the input @"Jack". 回答1: it will work for you .. i have edited it .and for that you have to set delegate for textfield. and create a UIPIckrView in NIb file. - (BOOL) textFieldShouldBeginEditing:(UITextView *)textView { pickrView.frame = CGRectMake(0, 500, pickrView.frame.size.width, pickrView.frame.size.height); [UIView beginAnimations:nil context