iphone - Usage of captive network -


sorry english. want app use captive network. idea when user try connect captive portal network app open instead od relative web sheet. know have use function cnsetsupportedssids(), don't understand how implement it. in advance!

this code have wrote.

- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions {     nsarray *array = [nsarray arraywithobjects:@"ssid of network",nil];     bool ok = cnsetsupportedssids((__bridge cfarrayref) array);      if(ok)     {         nslog(@"completed %lu",(unsigned long)[array count]);     }     else     {         nslog(@"failed");     }     // override point customization after application launch.     return yes; } 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -