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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -