¡@

Home 

2014/10/15 ¤U¤È 10:05:49

iphone Programming Glossary: currenttextfield

How to use one UIPickerView for multiple textfields in one view?

http://stackoverflow.com/questions/11612460/how-to-use-one-uipickerview-for-multiple-textfields-in-one-view

the currentArray reload the UIPickerView with reloadData and return NO in the same textFieldShouldBeginEditing method. currentTextField is a pointer only to know what is the currentUITextField being edited we need to store it to be able to set the text after.. being edited we need to store it to be able to set the text after selecting data in the picker. Declare currentTextField in the interface. BOOL textFieldShouldBeginEditing UITextField textField currentTextField textField if textField myFirstTextView.. data in the picker. Declare currentTextField in the interface. BOOL textFieldShouldBeginEditing UITextField textField currentTextField textField if textField myFirstTextView currentArray array1st pickerView reloadData self animatePickerViewIn return NO and..