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

contentInset,adjustContentCellsCenter一起设置时必现不能居中的bug #158

Open
HungryFour opened this issue Mar 2, 2020 · 0 comments

Comments

@HungryFour
Copy link

HungryFour commented Mar 2, 2020

   self.title = @"TabPagerControllerDemoController";
    self.tabBarHeight = 50;
    self.tabBar.contentInset = UIEdgeInsetsMake(0, 50, 0, 50);
    self.tabBar.layout.barStyle = TYPagerBarStyleProgressView;
//    self.tabBar.layout.cellWidth = CGRectGetWidth(self.view.frame)/3;
    self.tabBar.layout.cellSpacing = 0;
    self.tabBar.layout.cellEdging = 0;
    self.tabBar.layout.adjustContentCellsCenter = YES;
    self.dataSource = self;
    self.delegate = self;

设置self.tabBar.contentInset 后再设置self.tabBar.layout.adjustContentCellsCenter。出现不能居中的bug

@HungryFour HungryFour reopened this Mar 2, 2020
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