title: Drawing inside a subview of a UIView subclass
body: <p>I have more of a generic question. I have a custom class that subclasses <code>UIView</code>. I override '-drawRect' to draw points in a line which I successfully did. Now I declare another UIView object inside my class that I want to animate. It should be a white circle outline which I'd like to move with an animation and this is why I want it to be of <code>UIView</code> type. But how can I draw inside it? What if I have 3 other similar cases for example? So my point is, I want to keep all of the functionality inside the component's class and have custom drawing for one or more <code>UIView</code> subviews. I think I am missing something on conceptional level.</p>
  
  <p>In ActionScript 3 I would do it so:</p>
  
  <pre><code>var first:MovieClip = new MovieClip();   
  first.graphics...
  ......
  var nTh:MovieClip = new MovieClip();
  nTh.graphics...
  </code></pre>
  
  <p>This is what I want to achieve (as I said I've already made the drawing of the dots inside <code>-drawRect</code>, now I want to make the bigger circle which has to be animated later):
  <img src="https://i.stack.imgur.com/O1fpb.jpg" alt="example"> </p>