php connection with swift

How to pass data from the swift app in to the php and retrieve the php data from the swift table view?Please anyone help me?

The standard approach is to use NSURLSession to run HTTP[S] requests against your server. I generally recommend that you use something standard (JSON or XML) for your request and response bodies, which avoids tying your client app to anything PHP specific.

If you have specific questions beyond that, please post ’em and we’ll see what we can do to help.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Could you please provide any sample code for retrieve data in php with json format using swift table view?

I want to connect to an Online sever and add & retrieve a list of data from the Web-app and show as a list-Table.

[So I dont want to do any backend service implementation].

Here is a link that may help you.


jamesonquave.com/ blog/ making-a-post-request-in-swift/

Thank you sou much for your reply, but this project not convert to the latest swift.These errors are encountered,


AppDelegate.swift:47:96: Extra argument 'error' in call

AppDelegate.swift:17:10: Objective-C method 'application:didFinishLaunchingWithOptions:' provided by method 'application(_:didFinishLaunchingWithOptions:)' conflicts with optional requirement method 'application(_:didFinishLaunchingWithOptions:)' in protocol 'UIApplicationDelegate'

How to connect two viewcontrollers to same navigationcontroller in storyboard iPhone?

php connection with swift
 
 
Q