how to use UISegmentedControl to change datasource in tableview? with sql tables or read data from arrays 开发者_开发知识库 thanks
- Use -addTarget:action:forControlEvents:(with events UIControlEventValueChanged) to set up a response action for the segmented control.
- In the action, check the sender's selectedSegmentIndexproperty. Use this to determine which data source to use.
- Change the table view's dataSourceproperty.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论