title: How to perform performSegueWithIdentfier from within UIView
body: <p>Ok so I have a UIButton embedded into a UIImageView which forms part of a UIView.</p>
  
  <p>The button's selector calls a method which should run:</p>
  
  <blockquote>
    <p>[self performSegueWithIdentifier:@"SegueToMoreInfo"];</p>
  </blockquote>
  
  <p>However I get the error:
  no visible at interface for 'myclassname' declares the selector 'performSegueWithIdentifier'.</p>
  
  <p>Basically  I really need to perform a segue from within the UIView. If not possible how would I call from the UIViewController instead?</p>
  
  <p>EDIT: MORE INFO:</p>
  
  <pre><code>//adding button
  UIButton *attractionButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
  [attractionButton addTarget:self
             action:@selector(buttonClicked:)
             forControlEvents:UIControlEventTouchUpInside];
  [attractionButton setTitle:@"Attraction Info" forState:UIControlStateNormal];
  attractionButton.frame = CGRectMake(80.0, 80, 160.0, 40.0);
  [_image1 addSubview:attractionButton];
  </code></pre>
  
  <p>My method :</p>
  
  <pre><code> (IBAction)buttonClicked:(id)sender
  {
      [self performSegueWithIdentifier:@"SegueToMoreInfo" sender:sender];
  }
  </code></pre>