0

MyAlertView という名前のこのカスタム作成オブジェクトがあり、次のようにインスタンスを作成しています。

MyAlertView *alertView2 = [[MyAlertView alloc] initWithTitle:@"TITLE" message:@"MESSAGE" delegate:self cancelButtonTitle:@"CANCEL" otherButtonTitles:nil, nil];

初期化子は正常に機能し、オブジェクトを初期化します。次に、このメソッドを呼び出します。

[alertView2 show];

これは、MyAlertView クラスのメソッドの実装です。

- (void)show {
    [self.delegate willPresentAlertView:self];
    [self.myWindow makeKeyAndVisible];
    [self.delegate didPresentAlertView:self];
}

そこにブレークポイントを設定しましたが、メソッドが呼び出されません。何故ですか?

4

0 に答える 0