Swift 3: Twitter - Custom Tweet Cells (Ep 8)

preview_player
Показать описание
Let's look at how to easily implement a section section of Tweet cells for our HomeDatasourceController class. Using LBTAComponents, you'll find that this task is much much easier than the standard cell registration process using UIKit.

Basic Training Course:

Completed Source Code:

Рекомендации по теме
Комментарии
Автор

Man! The LBTA framework works awesome. Thanks, ​Brian!

israman
Автор

Hi Brian, LBTAComponents is a godsend to iOS community. Thanks for amazing tutorial :)

TibetanBillboard
Автор

That trick with navigation bar is definitely something to add to my snippets =) thanks Brian!

developerios
Автор

You may have answered this before in a Q&A, but would you consider making a video on how to improve our interview skills? or what you look out for in detail in an applicant :)? Thanks for the video!

Also, grats on 15k!

Inpon
Автор

In 4:35
apart of this neath trick within setting background of white View u can just
type this func below in your HomeDatasourceController

func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets {
if section == 0 {
return UIEdgeInsets.zero
} else {
return UIEdgeInsets(top: 14.0, left: 0, bottom: 0, right: 0)
}
}

szymontamborski
Автор

just got an error at 12:35 of this video. I did close and open xcode but still got this "Cannot load undelying module for LBTAComponents" if anyone have this or know to fix? Thanks.

rogerlacson
Автор

Sir, if we want to make Navigation Bar 100%Transparent or 10%, 20%, 30%, 50% Transparent than what we Do? Sir please give any Solution.

KumarLav
Автор

Hi Brian, will you be showing how to pull to refresh as well as scroll to bottom refresh? I'm reading a lot online, but most of the article are with TableView.

Hope this will be something you can cover for this series. Thank you.

prasenjitgiri
Автор

Brian I have yet to watch every video in this series but I love them so far. My question though is that using this anchoring method, at some point do you handle all devices sizes and orientation? I was playing around with my own app with views and your anchoring system and it looked great until I rotated the device or used a smaller screen such as the 5... Would love to know!

tubehelpr
Автор

Thank you again Brian for your awesome video.
Maybe a dummy question but LBTAComponents doesn't work with UICollectioView ? I mean if section == 1 have only one cell and if we put a horizontal UICollectioView in it, we cannot use LBTAComponents DataSource model to populate this new UICollectionView right ?

Thank you very much and have a great day.

florianldt
Автор

May I ask a question? I'm making a small application with your LBTAComponent. I'd like to make a "DatasourceConroller" in "DatasourceCell". How do I do that? I have made some code but it didn't work. That code has no error but "DatasourceConroller" doesn't load.

나푸들
Автор

Question: Why using CollectionView but not TableView?

pariveshsharma
Автор

Would you please use in app purchase on this tutorial or any other one.
Its really important!! I bet a lot of people want to learn how to do that.

bizzydizzy
Автор

I love your videos! ty very much, please make some Universal (Ipad/iphone) design dev tutorial!

gsk
Автор

Why are you building out the ViewController using UICollectionView rather than UITableView?

danlevy
Автор

for function "anchor" here, why we set the "top" parameter as "view.topAnchor" instead of "nil"?

yingchen
Автор

it works now, after totally closing down and made googling about "Cannot load undelying module", still looking for answer for mystery error.

rogerlacson
Автор

Hi Brain, I don't know why, but when I return more than amount of Users Array in "if section == 1" in numberOfItems, I get an error "out of range". I mean that if I want to make for e.g. 3 TweetsCells I need make minimum the same amount of UserCells. Is that normal or I'm doing something wrong?

marekchojecki
Автор

When you have a lot of different cell in a collection how do you handle it because hard coding section is not working for me

albincr
Автор

I noticed that my third bioTextView cell didn't have a line separator under it, so I inserted a top constant of 1/2 to the whiteBackgroundView, and changed my separatorLine color to match the collectionView blue/gray tint. *hackerman .gif*

Does anyone have an idea why the separatorLine could have been missing for me?

gandalfgrey