Using a private API to enable a personal access point in ios

I am using the iOS environment header to enable hotspot in ios. Link

NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/Sharing.framework"]; BOOL success = [b load]; Class SFRemoteHotspotSession=NSClassFromString(@"SFRemoteHotspotSession"); 

How to implement the following method to enable an access point: -

 - (void)enableHotspotForDevice:(id)arg1 withCompletionHandler:(id /* block */)arg2; 
+5
source share

Source: https://habr.com/ru/post/1266546/


All Articles