title: iOS - set UIButton target and action from its super class
body: <p>I have 2 classes 
  ClassA: UIView
  ClassB: UIViewController</p>
  
  <p>I have a UIButton in ClassA</p>
  
  <p>The button is declared in the header and as an @property of A </p>
  
  <pre><code>UIButton *selectBtn;    
  }
  @property (nonatomic, strong) UIButton *selectBtn;
  </code></pre>
  
  <p>in the .m file of Class A the button is initialized and shows up on screen</p>
  
  <p>ClassB imports ClassA's header file and from it I'm trying to set the target and the action for my button with the following </p>
  
  <pre><code>[ClassA.selectBtn addTarget:self action:@selector(getSomething:)     forControlEvents:UIControlEventTouchUpInside];
  </code></pre>
  
  <p>But i keep getting an Error message saying 
  "Property "selectBtn" not found on object of type "ClassA"</p>
  
  <p>What am I doing wrong ? 
  any help or guidance is very appreciated </p>