Published on November 24, 2016 by CodeWithChris

Firebase Tutorial for iOS Apps
Lesson 7: Read Data from Firebase Database
In this lesson, you’ll learn how to retrieve your data from the Firebase database as well as how to update the data in your app in realtime!

This video series uses the latest and greatest from Apple (Xcode 8, Swift 3, iOS 10) and Google (Firebase) to create a messaging app with database features.

This series is intended for intermediate programmers or people who have gone through my Beginner series which can be found here:

How To Make An App (for beginners) – Start Here

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

29 Comments on "Firebase Tutorial – Ep 7 – Read Data from Firebase Database"

Notify of
avatar

John Halley
Guest
John Halley
12 days 17 hours ago

Is anyone else's data being duplicated when reopening the view?

chandresh savsaviya
Guest
chandresh savsaviya
21 days 4 minutes ago

Please show me how to delete posts from cells and also from database.

Bahadır Biten
Guest
Bahadır Biten
1 month 7 days ago

Hello Chris! Thanks for detailed explanations. IF anyone comes across with a problem where xcode cannot build due to undeclared FIRDatabase and FIRDatabaseReference issues, go to terminal and type "pod update" every time before you open the .xcworkspace. OR don't edit your pod file text using text editor which uses smart quotes and messes up your file each time. Try to use Sublime Text as Chris uses in his own machine.

CodeWithChris
Guest
CodeWithChris
21 days 19 hours ago

Thanks for helping others Bahadir!

DR. Craig Curphey
Guest
DR. Craig Curphey
1 month 7 days ago
Hey Chris – I have been searching for documentation on what members or fields exist in the snapshot that appears in closures. I can print it at debug time, but I can't extract the individual fields. Here is what I am getting …po snapshotSnap (Equities) { tickerSymbol = init;then po snapshot.value▿ Optional<Any> ▿ some : 1 element ▿ 0 : 2 elements – .0 : tickerSymbol – .1 : initI want to access the fact that it contains "Equities". Then the 0th element in the dictionary, then the 1st item in the dictionary.Any suggestion?Thanks, Craig
Nathan Hacault
Guest
Nathan Hacault
1 month 15 days ago

I have been following you tutorial since part 1. I haven't had a problem until now. At the end of the video when you run the simulator it works fine for you. When I run it I get this error:libc++abi.dylib: terminating with uncaught exception of type NSExceptionCan you help?

Charles Leota
Guest
Charles Leota
1 month 20 days ago
Hi Chris, love the tutorial. Must admit you are very precise in what you are teaching. I do have a question tho. Can you tell me how to delete a message from the tableview please. I do know that you use the (UITableViewCellEditingStyle .delete) function to swipe the cell to bring up delete. However, how do i get a ref to that particular message and delete from the firebasedatabase please, so i can use the removeValue method on that reference and then use the reloadData() method to the tableview. Hope that makes sense. Once again, thanks for the tuts.. love… Read more »
Emmanuel Ogbewe
Guest
Emmanuel Ogbewe
2 months 6 days ago

Ok awesome thanks, also I was wondering how for my app since I'm using firebase , how to create a privacy policy?

Mert Kahraman
Guest
Mert Kahraman
2 months 17 days ago

Chris I can't thank you enough. This is my first time watching one of your video series and I must admit these tutorials are a great for Firebase & Swift integration.Thanks for showing the importance of documentation and taking comments on our code and actually taking time to explain what we are "actually" doing using best practices – it's a valuable trait that many online course/teacher/tutorial lacks.Looking forward for more Firebase & Swift tutorials!

CodeWithChris
Guest
CodeWithChris
2 months 16 days ago

+Mert Kahraman that means a lot to me Mert. Thanks for spending the time to write and watch!

Yip Ken
Guest
Yip Ken
2 months 27 days ago

Excellent tutorial!

SwampMasherr
Guest
SwampMasherr
2 months 27 days ago

Very useful tutorial! Thank you!

1 2 3
wpDiscuz