0
我有两个UIViewController的。在厂景,我管理与PIN码注解,所以我需要精确地推动视图2时,在附件控制用户点击,我的代码是这样的:该segue没有执行推动动作
-(void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
{
NSLog(@"calloutAccessoryControlTapped");
[self performSegueWithIdentifer:@"My identifier" sender:self];
}
编译时,我得到了这样的警告:
Instance method '-performSegueWithIdentifer:sender:' not found (return type defaults to 'id')
和运行时,该应用明显与此堆栈崩溃:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[view1 performSegueWithIdentifer:sender:]: unrecognized selector sent to instance 0x7d94ca0'
在情节串连图板,我所选择的视图1,ctrl+left click+ drop
到视图2,然后我选择push
。另外,我已将segue标识符设置为My identifier
。那么我在这里错过了什么?
oops,thanx man :)) – Malloc 2012-01-27 22:28:54