Skip to content

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

@HungryFour

Description

@HungryFour
   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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions