title: init UIView with custom parameters
body: <p>I'm trying to pass data to a custom uiview when initing.
  I followed the method outlined <a href="https://stackoverflow.com/questions/16261145/init-uiview-with-parameters">here</a>. </p>
  
  <p>My UIView</p>
  
  <pre><code>-(instancetype)initWithCoder:(NSCoder *)aDecoder
  {
      if(self = [super initWithCoder:aDecoder])
      {
          [self initAudioPlayer];
      }
  
      return self;
  }
  
  - (void)initAudioPlayer
  {
      self.player = [[AVAudioPlayer alloc]initWithContentsOfURL:self.fileURL error:nil];
      [self.player prepareToPlay];
  
  }
  </code></pre>
  
  <p>My ViewController</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  
      self.audioURL = [[NSBundle mainBundle] URLForResource:@"audio4" withExtension:@"wav"];
      AudioControlsView *view = [[[NSBundle mainBundle] loadNibNamed:@"AudioControlView"
                                                   owner:self
                                                  options:nil] objectAtIndex:0];
      if (view)
      {    
              view.fileURL = self.audioURL;
      }
   [self.view addSubview:view];
  
  }
  </code></pre>
  
  <p>When I do it this fileURL is nil.</p>
  
  <p>I can get it to work with:</p>
  
  <pre><code>- (void)setFileURL:(NSURL *)fileURL
  {
      _fileURL = fileURL;
      self.player = [[AVAudioPlayer alloc]initWithContentsOfURL:self.fileURL error:nil];
      [self.player prepareToPlay];
  }
  </code></pre>
  
  <p>But I don't think that's the proper way.</p>