title: MVC - does the view know the controller?
body: <p>I'm currently refactoring my app to be sure the it's MVC compliant.
  I would like to split the controller (MyController which extends UIController) and the view (HomeView which extends UIView) I set the view in myController using </p>
  
  <pre><code>self.view = [[HomeView alloc] init];
  </code></pre>
  
  <p>When I push an UIButton, a method is called in the view, and in this method I would like to call a method from the controller.</p>
  
  <p>In my view</p>
  
  <pre><code>[zenModeBtn addTarget:self action:@selector(touchZenMode:) forControlEvents:UIControlEventTouchDown];
  </code></pre>
  
  <p>...</p>
  
  <pre><code>- (void) touchZenMode:(id) sender {
     [myController playZenMode];
  }
  </code></pre>
  
  <p>But having a reference to the controller in the view is really a bad practice isn't it ?</p>
  
  <p><strong>EDIT :</strong></p>
  
  <p>So in my UIViewController I've made this : </p>
  
  <pre><code>- (id) init {
      HomeView* myHomeView = [[HomeView alloc] init];
      [myHomeView.arcadeModeBtn addTarget:self action:@selector(touchArcadeMode) forControlEvents:UIControlEventTouchUpInside];
      self.view = myHomeView;
      return self;
  }
  </code></pre>
  
  <p>is that correct ?</p>