pujiaxin33 / JXSegmentedView

A powerful and easy to use segmented view (segmentedcontrol, pagingview, pagerview, pagecontrol, categoryview) (腾讯新闻、今日头条、QQ音乐、网易云音乐、京东、爱奇艺、腾讯视频、淘宝、天猫、简书、微博等所有主流APP分类切换滚动视图)
MIT License
2.66k stars 369 forks source link

JXSegmentedListContainerViewListDelegate 警告 #229

Closed uclort closed 1 week ago

uclort commented 1 year ago

如果一个 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 commented 1 week ago

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