次のコードを使用して、viewcontroller A から viewcontroller B の UIAlertView にデリゲートを設定しようとしています。
ViewcontrollerA.m で
-(IBAction)callCancelAlert:(id)sender{
ViewcontrollerB *controller = [[PhotoViewController alloc] init];
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle: @"Announcement"
message: @"It turns out that you are playing Addicus!"
delegate: PhotoViewController
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
//[alert release];
}
および #import ViewcontorllerB.h
...しかし、「予期しないインターフェイス名 ViewcontorllerB: 予期される式」というエラーが表示されます。どういう意味ですか?