开发者

Multiple component picker view

开发者 https://www.devze.com 2023-02-14 19:54 出处:网络
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:num

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

精彩评论

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