-2

I had created my SIGNUP page but i don't known how to call webapi in button click event IOS SWIFT.**enter code here**

Honestraj19
  • 321
  • 1
  • 3
  • 8

1 Answers1

-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

Community
  • 1
  • 1
NSAnant
  • 816
  • 8
  • 18
  • 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