objective c - IOS Create button to hit a URL without opening in Safari -
i have found code open link upon pressing button, don't want open link, send command web controller without exiting app.
[[uiapplication sharedapplication] openurl:[nsurl urlwithstring:@"192.168.0.100/outlet?5=on"]]
is there way modify don't leave app, still send command controller?
eventually want send on command, wait 20 seconds, send off command.