title: init UIView with parameters
body: <p>I have UIView class that presents view that is created programaticly in a controller.</p>
  
  <p>When creating (initing) the UIView I would like to transfer parameters from the UIViewController, so instance variables of the UIView can be initialized. I want it to happen before <code>awakeFromNib</code> is called. So in <code>awakeFromNib</code> I could use these parameters. </p>
  
  <p>I guess I need to do it in <code>- (id)initWithCoder:(NSCoder *)aDecoder</code>, but how? It only receives the <code>aDecoder</code></p>
  
  <p>Something like this:</p>
  
  <pre><code>- (id)initWithCoder:(NSCoder *)aDecoder {
  
      if(self = [super initWithCoder:aDecoder]) {
           _instanceParameter = parameterFromController;
      }
  
      return self;
  }
  
  
  -(void)awakeFromNib{
      if (_instanceParameter)
           do logic
  }
  </code></pre>