0

これは私の viewcontroller1.m ボタンの userinteractionenabled 関数です。

-(void) BtnUserInteractionStatus {
   oneBtn2.userInteractionEnabled = NO; 
   oneBtn3.userInteractionEnabled = NO;
}

- (void)viewDidLoad {
   [super viewDidLoad];
   [self BtnUserInteractionStatus];
}

これは、viewcontroller1.m からの私の viewcontroller2.m ボタン userinteractionenabled 関数アクセスです。

#import "ViewController1.h"

- (void)viewDidLoad {
   [super viewDidLoad];

   svc = [[StageViewController alloc]init];
   [svc BtnUserInteractionStatus];
}

私のviewcontroller2.h、

#import "ViewController1.h"

@interface ViewController2 : UIViewController {
StageViewController *svc;
}

@property (assign) StageViewController *svc;

しかし、これは機能していません。間違いがあれば修正してください。

4

1 に答える 1