Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG:当segmentedView中的dataSource,是从网上回调的调用刷新方法reloadDataWithoutListContainer,会导致页面不展示 #237

Closed
bilibili11 opened this issue Nov 16, 2023 · 0 comments

Comments

@bilibili11
Copy link

func reloadData(){
var titles : [String] = []
for (_,value) in self.dataSource.enumerated(){

        titles.append(value.cate_name!)
    }
    if let _segDataSource = segmentedDataSource as? JXSegmentedTitleDataSource {
        _segDataSource.titles = titles
        segmentedView.isHidden = false
        listContainerView.isHidden = false

//在此刷新
segmentedView.reloadDataWithoutListContainer()
}
}
//这个方法不会被调用,只有点击后才会触发
func listContainerView(_ listContainerView: JXSegmentedListContainerView, initListAt index: Int) -> JXSegmentedListContainerViewListDelegate {
let data = self.dataSource[index]
let listView = WPP_CategoriesListView(cateID: data.cate_id!)
listView.delegate=self

    return listView
}

最后:感谢您提供的工具

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant