動的に初期化されるボタンがあります。別の UIViewController からそのボタンを無効にしたいです。
私はこのコードを使用しています:
ボタンは @property (強力、非アトミック) IBOutlet UIButton *aboutus; です。
そして、私はこの方法でそれを無効にしようとします:
OtherViewController * view2 = [[OtherViewController alloc] initWithNibName:@"view2" bundle:nil];
view2.aboutus.enabled=NO;
しかし、ボタンは引き続き有効になります..理由は何ですか?