title: how can I set actions on UIImages when I am using them as buttons?
body: <p>Hello
  I am using images as buttons so how can I put event methods as they pressed, my coding is as below ...</p>
  
  <pre><code>UIImageView* view = [[UIImageView alloc] initWithImage: [UIImage imageNamed: @"front_pag.png"]];
      view.frame = CGRectMake(0, 0, 320, 460);
      [self.view addSubview:view];
  
  
      new_button = [[UIButton alloc] init];
      UIImage *img1 = [UIImage imageNamed:@"new.png"];
      [new_button setImage:img1 forState:UIControlStateNormal];
      [new_button setFrame:CGRectMake(85, 430, 0, 0)];
      [new_button addTarget:self action:@selector(newMethod) 
           forControlEvents:UIControlEventTouchUpInside];
      [self.view addSubview:new_button];
  </code></pre>
  
  <p>what should I do, because in this case, I can't call newMethod, even I have this method in same class.</p>
  
  <p>what should I do ?</p>