シングルトン オブジェクトのメソッドを呼び出すがUIViewControllerあり、特定の条件でUIAlertView. ユーザーがボタンをタップするUIAlertViewと、UIAlertViewが消え (現時点では消えます)、そのUIViewController後ろのボタンが別のシーンに移動します。私の問題は、UIAlertViewがシングルトン クラスからのものであり、セグエを で実行する必要があることUIViewControllerです。
でSingleton.m:
-(void)alertView:(UIAlertView *)alertView
clickedButtonAtIndex:(NSInteger)buttonIndex {
NSString *buttonTitle = [alertView buttonTitleAtIndex:buttonIndex];
if ([buttonTitle isEqualToString:@"Button!"]) {
[self performSegueWithIdentifier: @"Segue!" sender: self];
}
}
私の質問は、セグエを行う時がself来たことを通知できるようにするには、何を置き換えるかです。UIViewController