I am trying to add rounded corners to my customUITabBar, and to do so I did the following in layoutSubviwes():
isTranslucent = false layer.masksToBounds = tru