title: how to access function one class to another objective c
body: <p>This is my viewcontroller1.m buttons userinteractionenabled function, </p>
  
  <pre><code>-(void) BtnUserInteractionStatus {
     oneBtn2.userInteractionEnabled = NO; 
     oneBtn3.userInteractionEnabled = NO;
  }
  
  - (void)viewDidLoad {
     [super viewDidLoad];
     [self BtnUserInteractionStatus];
  }
  </code></pre>
  
  <p>This is my viewcontroller2.m buttons userinteractionenabled function access from viewcontroller1.m,</p>
  
  <pre><code>#import "ViewController1.h"
  
  - (void)viewDidLoad {
     [super viewDidLoad];
  
     svc = [[StageViewController alloc]init];
     [svc BtnUserInteractionStatus];
  }
  </code></pre>
  
  <p>my viewcontroller2.h,</p>
  
  <pre><code>#import "ViewController1.h"
  
  @interface ViewController2 : UIViewController {
  StageViewController *svc;
  }
  
  @property (assign) StageViewController *svc;
  </code></pre>
  
  <p>But, this is not working.  If there is any wrong please correct it.</p>