title: Can I add a subview inside a subview?
body: <p>I have added a view inside ViewController using <code>[self.view addSubview:newView]</code>. newView is a UIView type object.
  Inside newView I added added a few views using <code>[self addSubview:polyg];</code>.
  <code>Polygs</code> also inherit from <code>UIView</code>. But they never get drawn. <code>drawRect:(CGRect)rect</code> is never called.</p>
  
  <p>I'm new to iOS and have no idea what I'm doing wrong.</p>
  
  <p>It probably has something to do with the fact that I did not use <code>self.view</code> when adding views to newView. I can't even use <code>self.view</code> inside newView. </p>
  
  <p>how can I make this work?</p>
  
  <p>edit:
  When i create these polyg objects I'm using initWithFrame and sending newView's frame, like this: <code>[[Polyg alloc] initWithFrame:self.frame];</code> 
  Could this be the cause? Polyg is going to be a movable and resizable polygon, so I figured each should be able to draw on the entire screen.</p>
  
  <p>edit:
  I created a method inside newView called touchX:Y that is called from the viewController whenever I touch my finger on the screen. Inside I wrote this: NSLog(@"subview = %i", self.subviews.count);. Whenever I touch the screen I see this on the console: subview = 89 so I'm pretty sure the subviews were added to newView.</p>
  
  <p>I tried adding this to the same touchX:Y method:</p>
  
  <pre><code>        for (UIView* subview in self.subviews) {
              [subview setNeedsDisplay];
          }
  </code></pre>
  
  <p>But the subviews' drawRect is never called.</p>