I have a UIViewController that is embedded in a UINavigationController. The navigation item for this view controller is a UISegmentedControl with 3 segments. I'm trying to find a way to add a "new" badge to each of the segments. It appears that UISegmentedControl does not normally allow you to do this but I was thinking that for my purposes, perhaps I could simulate this using a custom UIView positioned at the left or right edge of each segment. I know I can get the width of the UISegmentedControl and since the auto-size mode is set to "equal widths", it seems reasonable that I could simply divide the total width by 3 to determine the approximate width of each segment.
However, there are a couple of things that I'm not sure about:
- Is it possible to determine the x/y position of the
UISegmentedControlwithin the navigation bar so I know where to position the custom view(s)? - Is it then possible to add a custom view at these positions inside the space contained by the navigation bar?

