开发者

Multiple component picker view

I am working on project with picker view. I have two components开发者_高级运维 in it. I want to have the second component contents loaded based the selection made in the first view.


Your pickerView:numberOfRowsInComponent: and pickerView:titleForRow:forComponent: when called for the second component will have to check the value of the first component to determine what to return.

pickerView:didSelectRow:inComponent: when called for the first component will have to call reloadComponent: on the picker to tell it to reload the data for the second component.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜