Skip to content

Strange behaviour when using TabBarController #35

@tombai

Description

@tombai

I have UITabBarController using a storyboard and add a PageTabMenuViewController. I populate items and titles in the init?(coder aDecoder: NSCoder).

It runs and works fine but with a warning "UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). "

The issue is that PageTabMenuViewController has no reference to the TabBarController so something like self.tabBarController!.tabBar will crash. It also causes its tab bar icon and label to disappear.

swiftpagemenu

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