title: Not drawing sublayers in a class that inheritates from UIImageView from the ViewController class
body: <p>First of all, I apologize, because I am starting iOS development.</p>
  
  <p>I have a "Lienzo" class, that inheritates from UIImageView to perform some graphic tasks in response to a touch event:</p>
  
  <pre><code> @interface Lienzo : UIImageView
  
  - (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event {
      NSArray *allTouches = [touches allObjects];
      int count = [allTouches count];
      if (count &gt; 0){
         touch1 = [[allTouches objectAtIndex:0] locationInView:self];
         [self dibujaCirculo:1 ];
      }
     }
  
  -(void)dibujaCirculo:(int)instrumento {
  
      CAShapeLayer *circleLayer = [CAShapeLayer layer];
      [circleLayer setBounds:CGRectMake(0.0f, 0.0f, [self bounds].size.width,
                                    [self bounds].size.height)];
  
       [circleLayer setPosition:CGPointMake([self bounds].size.width/2.0f,
                                       [self bounds].size.height/2.0f)];
       UIBezierPath *path = [UIBezierPath bezierPathWithOvalInRect:
                        CGRectMake(50.0,50.0,60.0*instrumento,60.0*instrumento)];
  
      [circleLayer setPath:[path CGPath]];
      [circleLayer setFillColor:[[UIColor yellowColor] CGColor]];
      [[self layer] addSublayer:circleLayer];
    }
  </code></pre>
  
  <p>The code works fine when I click on the image on the screen, and shows the circle on screen.</p>
  
  <p>But I want to use an object of Lienzo also on the ViewController. I have a property on the ViewController to also draw on the same image.</p>
  
  <pre><code>   @property (strong, nonatomic) IBOutlet Lienzo *test;
  </code></pre>
  
  <p>I synthesize and allocate it on screen, but when I try to draw inside a method, it does not shows anything on the screen.</p>
  
  <pre><code>[_test dibujaCirculo:3];
  </code></pre>
  
  <p>I have seen that I don't have access from ViewController to the bounds values of the "Lienzo" class, so I know that I am doing something wrong. I will appreciate any help.</p>