开发者

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 UILabels 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜