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.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo