title: How to Change UIButton title?
body: <p>MyViewController has one UIButton and another MainViewController use MyViewController.</p>
  
  <p>but MainViewController can't change UIButton title in MyViewController. </p>
  
  <p>also, in MyViewController only change UIButton title in viewDidLoad method.</p>
  
  <p>What's wrong? </p>
  
  <p>MyViewController</p>
  
  <pre><code>@interface MyViewcontroller : UIViewController {
      IBOutlet UIButton *imageButton;
  }
  
  @property (nonatomic, retain) UIButton *imageButton;
  
  @implementation MyViewcontroller : UIViewController {
  @synthesize imageButton;
      - (void)viewDidLoad { // can change button title
          [imageButton setTitle:@"buttonTitle" forState:UIControlStateNormal]
      }
  
      - (void)setButtonTitle { // can't change button title
          [imageButton setTitle:@"buttonTitle" forState:UIControlStateNormal];
      }
  }
  </code></pre>
  
  <p>MainViewController</p>
  
  <pre><code>@implementation MainViewController : UIViewController {
  @synthesize scrollView;
      - (void)viewDidLoad { // can't change button title
          MyViewcontroller *myView = [[MyViewcontroller alloc] initWithNibName:@"MyViewcontroller" bundle:nil];
          [myView.imageButton setTitle:@"ddd" forState:UIControlStateNormal];
          [scrollView addSubview:myView.view];
          [myView release], myView = nil;
      }
  }
  </code></pre>