I'm developing an app that requires users to select one option from the list of the table view. It's kind of similar to ringtone option in settings of the iPhone. I have attached a screen illustration of what exactly I'm trying to accomplish.
Now I want that option that is selected to be able to send as a value to my PHP Script with HTTPMethod
. This is the type of request I use, I guess, is just in matter of storing the data in variable.
HTTP Request Demo
let requestURL = NSURL(string: "http://example.com/script.php")
let request = NSMutableURLRequest(URL: requestURL!)
request.HTTPMethod = "POST"
Illustration:
I understand this is a beginner, but I haven't found any tutorial that does this in swift.
All this can be done using segue
show segue
unwind segue
to go back. And use the unwind segue to pass data back.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With