Create UICollectionView inside UITableViewCell – like App Store, Instagram and Facebook

[ad_1]
DOWNLOAD STARTER PROJECT:

Most apps with complex UI now doesn’t simply display a table of things or a grid of things that we can achieve by using a single UITableView or UICollectionView.

Apps like Instagram, App Store use complex and very flexible UI that it has multiple layout of items among different cells.

How can we create this? The answer is Next UICollectionView in a UITableViewCell.

But there’s a problem. Most people will just subclass UITableViewCell and make the UITableViewCell the collectionView’s delegate and datasource.

This method fundamentally violates MVC. We need a better solution.

Watch this training for all the detail. You’ll learn:
+ How to nest UICollectionView in UITableViewCell
+ How to set the UICollectionView’s datasource and delegate object properly for scale and MVC implementation.
+ How to implement UITableView’s delegate methods
+ How to implement UICollectionView’s datasource and delegate methods

DOWNLOAD STARTER PROJECT:

********************************
*** 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

*************************
*** 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:
Connect with Duc on facebook:
Tweet him:
Get daily inspiration:


Posted

in

by

Tags: