Published on July 5, 2017 by CodeWithChris

Xcode Project Code:
codewithchris.lpages.co/yt-mysql-06-xcode-tableview/

In this video series, I’ll show you how to connect an iPhone app to MySQL. We’ll go through it step by step starting from the beginning.

You’ll learn how to:
– Sign up for web hosting
– Create a new MySQL database
– Set up a MySQL database user
– Set access permission for that user
– Create a PHP web service to access the data
– Create an iOS app with a tableview, multiple screens and a map
– Access the PHP web service via the app to download the data from your MySQL database.

This is a video version of the tutorial here:

The Best Way to Connect Your iOS App to MySQL Database (4 Steps)

For more tutorials on how to build iPhone apps, make sure you subscribe and visit my site where you’ll find a community of like minded learners! Learning something new is always more fun with other people!

Website: codewithchris.com

CodeWithChris is dedicated to teaching beginners and non-programmers all about building iOS apps. On the site, you’ll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have successfully picked up Swift 3, Xcode 8 and app building from my course and materials!

Intro & Outro music
“Heartbreaker” by Jahzzar (www.betterwithmusic.com/)

Leave a Reply

10 Comments on "How to Connect an iOS App to a MySQL Database (Step by Step) – Part 6"

Notify of
avatar

hotmandead1
Guest
hotmandead1
18 days 10 hours ago

Incase anyone got a purple warning on the tableview.reload data here is the fix //Items that came back from the HomeModel func itemsDownloaded(locations: [Location]) { self.locations = locations DispatchQueue.main.async { self.tableView.reloadData() } }Credits:- stackoverflow.com/questions/26277371/swift-uitableview-reloaddata-in-a-closure

Keyshawn Johnson
Guest
Keyshawn Johnson
3 months 18 days ago

hey chris I've been having problems with trying to find which function i should replace "func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {" with if I'm developing with macosx instead of fox, can you help?

CodeCreative
Guest
CodeCreative
7 months 10 days ago

hi chris great tutorial. considering buying your course. is it possible to send data to the database and update data in the database as well as retrieve ?

CodeWithChris
Guest
CodeWithChris
7 months 8 days ago

Hey CodeCreative, sure it is. In the course however, i demonstrate using Firebase as the database rather than MySQL

CodeCreative
Guest
CodeCreative
7 months 10 days ago

hi chris great tutorial. considering buying your course. is it possible to send data to the database and update data in the database as well as retrieve ?

CodeWithChris
Guest
CodeWithChris
7 months 8 days ago

Hey CodeCreative, sure it is. In the course however, i demonstrate using Firebase as the database rather than MySQL

Oscar Alcaraz
Guest
Oscar Alcaraz
11 months 8 days ago

Hi, I have one question, I wanna do a login, for example if the user exists, I need another view controller to be showing the data from the user? Or I can do that on the same view of the login?

Oscar Alcaraz
Guest
Oscar Alcaraz
11 months 8 days ago

Hi, I have one question, I wanna do a login, for example if the user exists, I need another view controller to be showing the data from the user? Or I can do that on the same view of the login?

venkat prabhu
Guest
venkat prabhu
11 months 18 days ago

Awwesome , thanks for making tutorials will u make a video on SQLite database ?

venkat prabhu
Guest
venkat prabhu
11 months 18 days ago

Awwesome , thanks for making tutorials will u make a video on SQLite database ?

wpDiscuz