title: Working on custom component: subclass UIView or UIViewController?
body: <p>I'm working on a custom implementation of UISegmentedControl.
  I'd like to create a component that able to receive config data and from which obtain a custom View similar to UISegmentedControl. </p>
  
  <p>I started subclassing a UIView and i can create a custom UISegmentedControl with this code:</p>
  
  <pre><code>CustomSegment *segment = [[CustomSegment alloc] 
                           initWithTitles:[NSArray arrayWithObjects:@"one",@"two",nil]];
  [self.window addSubview:segment];
  </code></pre>
  
  <p>But now i'd like to improve my class and add some more customizable parameters to it.
  For example i'd like add a custom separators, define the button fonts and so on... here my doubt:
  Is it better to work on a UIView subClass or you suggest me to subclass a UIViewController, where i can manage View hierarchy in method like -<code>(void)loadView</code> and <code>-(void)viewDidLoad</code> ? </p>
  
  <p>In a simple UIView subclass, when i launch the custom init method, i setup immediately subviews... while using a UIViewController i can call custom init and define how my subview is builded into -(void)loadView. </p>