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

在xib中初始化PageMenu,左右滑动ScrollView,会出现PageMenu的title不显示问题 #34

Open
bianfu opened this issue Feb 1, 2019 · 1 comment

Comments

@bianfu
Copy link

bianfu commented Feb 1, 2019

No description provided.

@bianfu
Copy link
Author

bianfu commented Feb 1, 2019

当使用xib初始化PageMenu时,
- (instancetype)initWithFrame:(CGRect)frame trackerStyle:(SPPageMenuTrackerStyle)trackerStyle;方法中的

       [self setupStartColor:_selectedItemTitleColor];
       [self setupEndColor:_unSelectedItemTitleColor];

方法没有被执行到,导致此问题。
目前暂时的解决方案如下:
xib加载完成后,执行PageMenu的如下方法:

    [self.pageMenu performSelector:@selector(setupStartColor:) withObject:self.pageMenu.selectedItemTitleColor];
    [self.pageMenu performSelector:@selector(setupEndColor:) withObject:self.pageMenu.unSelectedItemTitleColor];

@bianfu bianfu changed the title 在xib 在xib中初始化PageMenu,左右滑动ScrollView,会出现PageMenutitle不显示问题 Feb 1, 2019
@bianfu bianfu changed the title 在xib中初始化PageMenu,左右滑动ScrollView,会出现PageMenutitle不显示问题 在xib中初始化PageMenu,左右滑动ScrollView,会出现PageMenu的title不显示问题 Feb 1, 2019
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