title: Can I have multiple views per viewController?
body: <p>Here is a related question I found, but it does not answer my question in detail.</p>
  
  <p>[http://stackoverflow.com/questions/3209993/cocoa-touch-can-i-have-multiple-views-per-view-controller-or-specify-bounds-of][1]</p>
  
  <p>I have a UIView class, <code>BallView</code>, which is set to be the default view of the ballViewController. Now, this view has a ball bouncing around according to the accelerometer. I am calling a private function <code>draw</code> every time the accelerometer sends updates.</p>
  
  <p>However, my main question is: I would like to have multiple such balls bouncing around.</p>
  
  <p>Do I have to recreate the view for every class ? But then the File's Owner's IBOutlet <code>view</code> will also have to be connected. And an IBOutlet can point to just one address.</p>
  
  <p>Any other way round this ?</p>
  
  <p>Here is how I'm instantiating the <code>Ball View</code> class in the ballViewController:</p>
  
  <pre><code>[motionManager startAccelerometerUpdatesToQueue:queue withHandler:
   ^(CMAccelerometerData *accelerometerData, NSError *error){
       [(BallView *)self.view setAcceleration:accelerometerData.acceleration];
       [(BallView *)self.view performSelectorOnMainThread:@selector(draw) withObject:nil waitUntilDone:NO];
   }];
  </code></pre>
  
  <p>Thus, it means, my question is a bit different from those multi-view tab-bar solutions. Because in those cases only 1 view is shown at a time. I want 4-5 views overlaid on top of each other.</p>
  
  <p>Any help ?</p>