Can a UILabel be placed over UIPicker component and the text of the UILabel be updated after user picks a new value in the picker?
How are the user's touches detected if i were to use UILabel
s that are overlayed on each picker component? I understand how to detect the user's touches on the UIPickerView
, but I need to update the text of the UILabel
after the user make changes a picker component value. My method is not being called af开发者_如何学Goter I change the values in the picker components. Any suggestions?
What are you trying to do that can’t be accomplished just using a UIPickerView
? In its UIPickerViewDelegate
, when you receive the -pickerView:didSelectRow:inComponent:
message, you can call [pickerView reloadComponent:someComponent];
to change the contents of a given row based on the user’s selections.
精彩评论