0

When I added a button to tabbar and set a specific cornerRadius to make it become a circle, I found the rightof the circle was been clipped , just like

button that is a subview of tabbar

But it work well in other views, such as UITableViewCell.

button which is in a cell

I had tried some views like UIImageView and UILabel, but it made no sense.

Does anyone had got into the trouble and fix it up?

Any help and suggestions will be highly appreciable.

By the way, I was working on iPhone6 .

3
  • Sometimes when you are working at small screen size of simulator, it might seems as if it has clipped the view for small UIView. Maybe increase the size of simulator and see the result. Because there wont be a case where same code will clip one view but not other view.
    – mshrestha
    Jun 22, 2016 at 7:37
  • You could also check the Image Insets for tab bar item. Jun 22, 2016 at 7:41
  • I am working on iPhone6.@Manjul Shrestha
    – tripleCC
    Jun 22, 2016 at 7:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.