I had created my SIGNUP page but i don't known how to call webapi in button click event IOS SWIFT.**
enter code here**
Asked
Active
Viewed 51 times
-2

Honestraj19
- 321
- 1
- 3
- 8
-
I am asking swift... – Honestraj19 Feb 08 '16 at 08:49
-
you can use Alamofire. Its great library in its self. – Hitendra Solanki Feb 08 '16 at 10:39
-
oh t q ..it is very useful for me... – Honestraj19 Feb 08 '16 at 14:29
1 Answers
-1
There are two ways to call the WebApi. 1. NSURLConnection 2. NSURLSession
Take a look at https://stackoverflow.com/a/24176452/2010154 for NSURLConnection
http://www.kaleidosblog.com/nsurlsession-in-swift-get-and-post-data for the NSURLSession
-
When you want to call any webAPI in the iOS application. If you would like to write your own code by using apple's frameworks, Otherwise there are 3rd party frameworks for calling the web API like Alamofire. – NSAnant Feb 09 '16 at 05:34