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

感谢大佬 #37

Closed
taozl opened this issue Feb 5, 2021 · 3 comments
Closed

感谢大佬 #37

taozl opened this issue Feb 5, 2021 · 3 comments

Comments

@taozl
Copy link

taozl commented Feb 5, 2021

首先感谢作者提供的优秀的三方,希望能继续更新下去。这里我遇到这个问题:

我将param设置成
.wMenuAnimalSet(PageTitleMenuAiQY)///爱奇艺样式(依恋)

然后动态的添加[self addMenuTitleWithObject:[WMZPageTitleDataModel initWithIndex:0 controller:AddVC title:@"增加的标题"]]

发现指示器的位置滑动到了第0个,并没有在当前的索引中。

@wwmz
Copy link
Owner

wwmz commented Feb 5, 2021

首先感谢作者提供的优秀的三方,希望能继续更新下去。这里我遇到这个问题:

我将param设置成
.wMenuAnimalSet(PageTitleMenuAiQY)///爱奇艺样式(依恋)

然后动态的添加[self addMenuTitleWithObject:[WMZPageTitleDataModel initWithIndex:0 controller:AddVC title:@"增加的标题"]]

发现指示器的位置滑动到了第0个,并没有在当前的索引中。

这个动态方法忘处理 下划线了哈。。抽时间我加上

@taozl
Copy link
Author

taozl commented Feb 5, 2021

我是在 添加的方法里面加了
[self.upSc.mainView scrollToIndex:self.upSc.currentTitleIndex animal:NO];
这句代码,目前是解决了这个问题,但不知道是否有其他更好的方案

@wwmz
Copy link
Owner

wwmz commented Feb 6, 2021

我是在 添加的方法里面加了
[self.upSc.mainView scrollToIndex:self.upSc.currentTitleIndex animal:NO];
这句代码,目前是解决了这个问题,但不知道是否有其他更好的方案

没问题的 这行代码

@wwmz wwmz closed this as completed Mar 23, 2021
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