title: How to detect touchesBegan, touchesMoved, touchesEnded events from another class
body: <p>I need to use touch events but i am trying to detect it from another class, so i will call back to my main class if touched or moved etc.
  I am calling init method in "classTouchEvents" firstly from my main class like that</p>
  
  <pre><code>objectTouchEvents=[[classTouchEvents alloc]initWith:self.view];
  </code></pre>
  
  <p>here is initWith method of "classTouchEvents"</p>
  
  <pre><code> - (id)initWith:(UIView *)selfView
  {
      self = [super init];
      if (self) {
          NSLog(@"here");
          view=[[UIView alloc]init];
          view=selfView;
          // Custom initialization
      }
      return self;
  }
  </code></pre>
  
  <p>and i get "here" log so i guess it is working but i cant detect if view get touch or anything. Here is my touch events in classTouchEvents</p>
  
  <pre><code>-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
  {
  
      NSLog(@"touchBegan");
  }
  -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
  {
   NSLog(@"touchMoved");
  }
  
  -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
  {
      NSLog(@"touchEnded");
  }
  </code></pre>
  
  <p>But i cant get any log about touches. I need some help.
  Thanks in advance.</p>