Swift: How to create Facebook News Feed (Part 1) – UICollectionView, NSLayoutConstraint



Part 2:

In this tutorial, we’ll learn how to create from scratch the Facebook News Feed using a UICollectionView. We then go over exactly how to layout every cell’s subview by using NSLayoutConstraint. Next we go over Extensions to make adding constraints much much easier. By the time you complete the project, you’ll have the perfect understanding of how to construct your views for the perfect layout.

Completed project:
https://www.letsbuildthatapp.com/course/Facebook-News-Feed

Helpful tutorials:
Build UICollectionViews programmatically: https://youtu.be/up-YD3rZeJA
Building a to-do list with UICollectionView: https://youtu.be/hexuJ6qL06I

How to Build Facebook Newsfeed – iOS Development Tutorial with Swift – How to Make an App



DOWNLOAD STARTER CODE: https://www.ductran.co/p/cm5

In this episode, we are using to build Facebook Newsfeed using UITableView and UITableViewController in iOS with Swift.

You’ll learn:
+ How to create UITableViewController and UITableView
+ How to design beautiful world-class apps
+ How to use Auto Layout in iOS
+ Subclass UITableViewCell to create custom Table View Cell
+ Apply Auto Layout on UITableViewCell to have dynamic Table View Cell Height
+ and much more…

DOWNLOAD STARTER CODE: https://www.ductran.co/p/cm5

********************************
*** ABOUT CODE MASTERY ***
********************************
Code Mastery is hosted by Duc Tran, founder of Developers Academy.

This is his free-style no notes, no teleprompter presentation and live coding broadcast with you guys everyday.

To join Duc’s free courses, register for free at http://ductran.co/

*************************
*** MEET DUC TRAN ***
*************************

Duc Tran is founder of Developers Academy, one of the world’s leading iOS, Android and Web development trainers.

More than 2,000,000 developers have studied his video trainings; 100,000 developers see his posts each month. Each year, Duc has helped 20,000 plus developers gratudate from his online courses or video series.

*************************************************
*** FREE TRAININGS IN IOS DEVELOPMENT ***
*************************************************
To subscribe and get free tutorials, courses and weekly content, visit me at: http://ductran.co/
Connect with Duc on facebook: http://facebook.com/ductranfan
Tweet him: https://twitter.com/ductrongtran
Get daily inspiration: http://instagram.com/ductran.co/

How to Build Instagram Newsfeed – UITableView and UICollectionView Tutorial – How to Make An App



DOWNLOAD STARTER CODE: https://www.ductran.co/p/cm6

In this episode, we are using to build Facebook Newsfeed using UITableView and UITableViewController in iOS with Swift.

You’ll learn:
+ How to create UITableViewController and UITableView
+ How to design beautiful world-class apps
+ How to use Auto Layout in iOS
+ Subclass UITableViewCell to create custom Table View Cell
+ Apply Auto Layout on UITableViewCell to have dynamic Table View Cell Height
+ and much more…

DOWNLOAD STARTER CODE: https://www.ductran.co/p/cm6

Another solution to implement Instagram or Facebook Newsfeed:
(1) Drag out a UICollectionViewController from your storyboard
(2) Create a custom UICollectionViewCell and apply Auto Layout on it
(3) Create a sub class of UICollectionViewCell for your cell
(4) Implement UICollectionViewDataSource methods for your UICollectionViewController subclass
(5) Populate data into the UICollectionView’s cells

********************************
*** ABOUT CODE MASTERY ***
********************************
Code Mastery is hosted by Duc Tran, founder of Developers Academy.

This is his free-style no notes, no teleprompter presentation and live coding broadcast with you guys everyday.

To join Duc’s free courses, register for free at http://ductran.co/

*************************
*** MEET DUC TRAN ***
*************************

Duc Tran is founder of Developers Academy, one of the world’s leading iOS, Android and Web development trainers.

More than 2,000,000 developers have studied his video trainings; 100,000 developers see his posts each month. Each year, Duc has helped 20,000 plus developers gratudate from his online courses or video series.

*************************************************
*** FREE TRAININGS IN IOS DEVELOPMENT ***
*************************************************
To subscribe and get free tutorials, courses and weekly content, visit me at: http://ductran.co/
Connect with Duc on facebook: http://facebook.com/ductranfan
Tweet him: https://twitter.com/ductrongtran
Get daily inspiration: http://instagram.com/ductran.co/