-3
- (void) registerHotspot: (NEHotspotNetwork*) network andCommand:(NEHotspotHelperCommand*) cmd
{
if ([network.SSID isEqualToString:@"Chameleon Cafe"])
{
[network setConfidence:kNEHotspotHelperConfidenceHigh];
[network setPassword:@"chamcafe"];
NEHotspotHelperResponse *response = [cmd createResponse:kNEHotspotHelperResultSuccess];
NSLog(@"Response CMD %@", response);
[response setNetworkList:@[network]];
[response setNetwork:network];
[response deliver];
}
NEHotspotNetwork * myNetwork = [[NEHotspotNetwork alloc] init];
}
https://objectivec2swift.com/ – iDeveloper