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

JXSegmentedListContainerViewListDelegate 警告 #229

Closed
uclort opened this issue May 29, 2023 · 1 comment
Closed

JXSegmentedListContainerViewListDelegate 警告 #229

uclort opened this issue May 29, 2023 · 1 comment

Comments

@uclort
Copy link

uclort commented May 29, 2023

如果一个 VC 同时实现 JXSegmentedListContainerViewListDelegate 和 JXPagingViewListViewDelegate 两个代理,JXSegmentedListContainerViewListDelegate 会触发警告

Non-'@objc' method 'listDidAppear()' does not satisfy optional requirement of '@objc' protocol 'JXSegmentedListContainerViewListDelegate'
Non-'@objc' method 'listDidDisappear()' does not satisfy optional requirement of '@objc' protocol 'JXSegmentedListContainerViewListDelegate'
Non-'@objc' method 'listWillAppear()' does not satisfy optional requirement of '@objc' protocol 'JXSegmentedListContainerViewListDelegate'
Non-'@objc' method 'listWillDisappear()' does not satisfy optional requirement of '@objc' protocol 'JXSegmentedListContainerViewListDelegate'

请问如何解决

@pujiaxin33
Copy link
Owner

给所有的方法加上@objc试试呢?

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

2 participants