swift2 - How to hide / disable tab bar item in swift -
i have 5 tab, tab bar controller in app, , want show 5th item if manager logged app (instead of employee).
i have code disables 5th item can still see (its grayed out , not clickable).
self.tabbarcontroller!.tabbar.items![4].enabled = false
is there way show first 4 items , evenly space them if non manager logged in?
Comments
Post a Comment