title: How do I create a custom view class Programmatically?
body: <p>I want to create a very simple customView with a few UIlabel on it, How should i do this . any tutorial or suggestion would be appreciated . I am new to this , didn't try before.</p>
  
  <p>I tried this with xib.</p>
  
  <pre><code>@interface MyCustomView : UIView
  
  @property (strong, nonatomic) IBOutlet UILabel *Label;
  
  @end
  </code></pre>
  
  <p>Implementation </p>
  
  <pre><code>#import "MyCustomTimer.h"
  @implementation MyCustomView
  -(id)initWithCoder:(NSCoder *)aDecoder{
        if ((self = [super initWithCoder:aDecoder])){
        [self addSubview:[[[NSBundle mainBundle] loadNibNamed:@"MyCustomView" owner:self     options:nil] objectAtIndex:0]];
         }
       return self;
  }
  @end
  </code></pre>
  
  <p>But i need to do it programmatically ,please help . thanks</p>