问题描述
||
我正在尝试创建一个NSMutableDictionary,其键由UIViewController委托组成,如下所示:
-(void) registerAsLocationManagerDelegate:(id<RTALocationManagerDelegate>)lmDelegate forPeriodicUpdates:(NSTimeInterval)seconds
{
NSTimer* periodicTimer = [NSTimer scheduledTimerWithTimeInterval:seconds
target:self
selector:@selector(runPeriodicUpdates:)
userInfo:nil
repeats:YES];
[periodicUpdateDelegates setObject:periodicTimer forKey:lmDelegate];
}
但是,我的代码崩溃是因为出现此错误:
*由于未捕获的异常\'NSInvalidArgumentException \'而终止应用程序,原因:\'-[RTALocationsListViewController copyWithZone:]:无法识别的选择器已发送至实例0x1a9750 \'
有什么办法吗?我尝试这样做是完全错误的吗?我应该采取不同的方法吗?谢谢你的帮助!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)