我正在尝试使用以下代码从 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:预期的表达式”。这是什么意思?