Hiyee ...现在,当我尝试连接到域时,出现此错误“ NSNetServicesErrorCode = -72003; NSNetServicesErrorDomain = 10;”。
我的连接代码:
-(IBAction)connect:(id)sender {
NSNetService *remoteService = servicesController.selectedObjects.lastObject;
remoteService.delegate = self;
[remoteService resolveWithTimeout:30];
}
错误代码:
-(void)netService:(NSNetService *)service didNotResolve:(NSDictionary *)errorDict {
NSLog(@"Could not resolve: %@", errorDict);
}
谢谢
最佳答案
这是documented in the documentation for the underlying CFNetwork library。 (如果您在页面上稍稍抬头,则会看到该名称具有您在错误字典中找到的值。)
关于cocoa - cocoa -NSNetserviceErrorCode = -72003,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1699684/