title: Finger Painting from a UIView Class to Another UIView Class
body: <p>I have a UIViewController Class which holds 2 custom UIView classes which are:</p>
  
  <p>ItemView</p>
  
  <p>DrawingView</p>
  
  <p>in UIViewController ViewDidLoad method I have the following code:</p>
  
  <pre><code>- (void)viewDidLoad
  {
  
      [super viewDidLoad];
      // Do any additional setup after loading the view from its nib.
      item = [[ItemView alloc] initWithFrame:CGRectMake(self.view.frame.size.width/2, self.view.frame.size.height/2, 230, 230)];
      item.opaque = NO;
  
      [self.view addSubview:item];
  
      drawing = [[DrawingView alloc] initWithFrame:self.view.frame];
      [self.view insertSubview:drawing aboveSubview:item];
      [item release];
      [drawing release];
  
  }
  </code></pre>
  
  <p>The DrawingView class gets UITouches and accordingly draw on the screen. </p>
  
  <p>My question is: </p>
  
  <p>I can draw all over the screen except for on top of ItemView class object. DrawingView class cannot draw on to ItemView. </p>
  
  <p>Let me explain it in another word: </p>
  
  <p>The DrawView class works on the screen except for the area of itemView subview. On top of itemView, DrawView cannot make any draws but other than itemView area, it makes drawing.</p>
  
  <p>What can I do? 
  What can be the problem?
  How can I make drawing on all screen including the itemView area added by addSubview on ViewController class?</p>
  
  <p>EDIT: I am adding a screenshot in order to explain the problem better</p>
  
  <p><strong><img src="https://i.stack.imgur.com/gM7CJ.png" alt="in this image link you can see that, I can draw on the white area but I cannot draw on the face which is an image loaded by ItemView class."></strong></p>
  
  <p>EDIT 2: I found that the problem is related to opacity. In the ItemView class, I changed the  added UIImageView object alpha value to 0.5f. 
  The result is semi-transparent view and now my finger drawing is visible. However, this is not what I want. I want to draw on top of the view. I do not want to play with the alpha value. </p>