在我的项目中,在地图注释上rightCalloutAccessoryView
,我使用以下代码连接mapView
到另一个视图,这里是
RWStation * temp=[[RWStation alloc]init];
[temp setTitle:obj.title];
[temp setPhoneNumber:phoneNum];
[temp setCabInfo:obj.cabInfo];
[temp setPrice:obj.price];
[temp setQuality:obj.quality];
[self.navigationController pushViewController:temp animated:YES];
在 iOS6 上,没有问题,但在 iOS5 上,它崩溃并在控制台上显示此错误
Project[61319:c07] * Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint' * First throw call stack: (0x1809022 0x1184cd6 0x17b1a48 0x17b19b9 0x5714a3 0x57167b 0x571383 0x47116d 0x3171fc 0x317779 0x31799b 0x317d11 0x3298fd 0x329aef 0x329dbb 0x32a85f 0x32AE06 0x32AA24 0x63A4 0x61CC06 0x280E49 0x280F34 0x2764B54 0x135D509 0x174080308030303030303030X173FD84 0x173FC9B 0X173FC9B 0X16F227D227D227D227D27D80227D80227D80BER
我不知道发生了什么,请帮助我。非常感谢。