Add a CustomBadge to a UISegmentedControl in the navigationBar
===

There is an `UISegmentedControl` in a `navigationBar`, which created in the `Storyboard` and have an `Outlet` wired to it. I have tried to add a custom badge to the `UISegmentedControl`, but failed. The badge does not appear.

**Ps.** The custom badge appears when i add it to the `navigationBar` (the superview of the `UISegmentedControl`), but it is the second approach for me. I wanna add it directly to the `UISegmentedControl`, could I?

**MyTableViewController.h**

    ...
    
    @interface MyTableViewController : UITableViewController{
    } 
    
    @property (strong,nonatomic) IBOutlet UISegmentedControl  *segmentedControl;
    
    ...


**MyTableViewController.m**

    @synthesize segmentedControl;
    
    ...
    
    - (void)viewDidAppear:(BOOL)animated
    {
        [super viewDidAppear:animated];
        CustomBadge *customBadge = [CustomBadge customBadgeWithString:@"1" withStringColor:[UIColor whiteColor] withInsetColor:[UIColor orangeColor] withBadgeFrame:YES withBadgeFrameColor:[UIColor whiteColor] withScale:0.8 withShining:YES];
        [self.segmentedControl addSubview:customBadge];
    }
    
    ...

the `CustomBadge` is the third party custom badge view class.