Swift: Twitter - User Cell Subview Layout (Ep 3)

preview_player
Показать описание
In today's video, we'll take it easy by simply going through the exercise of laying out subviews in our cells. We'll be using the anchor method that comes with LBTAComponents to accomplish this.

Completed Source Code:

Episode 2: Integrating LBTAComponents:

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

I know maybe everyone tell you this but men, you are seriously the best, thanks for all!

foocux
Автор

thank you! The anchoring method is easy peasy to use and so handy, thumbs up!!I personally add some extra functions to it and going to use it in my coming projects

azhmanadam
Автор

Your library is really useful!! I love it. I've started the transition to code only iOS apps and it's pretty fun

TurtleSensor
Автор

Thank you!!! Here at work working on sql as I listen to ur video. Was hoping you posted another one so I stay focused on ios development. 😎

PureWaterSolutions
Автор

Great.. expecting another tomorrow.. ;)

MohdTauheedUddinSiddiqui
Автор

@around 7 minutes. Why are we encoring the name label to the top of the profile image view? That kind of confused me. Could we have anchored it to the bottom of the purple box and added some padding? Just curious.

networkfreddy
Автор

Thank you Brian! How do you handle the button action functions in the cell? Especially when need to open a new controller? Do you use delegate?

joycelu
Автор

Hi Brian, thanks as always for your amazingly informative and well thought out tutorials. I'm sorry for such a late question, but I was wondering, if you were building this today, would you consider using a Stackview to layout the UserCell? I'm just trying to wrap my head around selecting the right approach.

AW-ldsk
Автор

Great. Could you please think to consider creating and show the proper way of implementing live search to list users in next episode or separate video? For example in Facebook messenger you can find someone to start sending messages by search. It is really needed by most of apps nowadays. Thank you

saifuddinsepehr
Автор

Hey Brian, this stuff is amazing, thanks for all the videos. are you still doing meetups in the bay area?

hnaderi
Автор

Hey Brian, LBTA is super cool. I have a question though, how to disable the screen orientation in code ?, so that it remains in portrait mode even if we rotate the phone. Thank you

amitkumardas
Автор

What's the difference between using the visual format language and using the anchors? which ones should people use under what situations?

fragile-cookie-dough
Автор

Sup Brian? What could cause an added tabelcell subview to disappear when a tableview is clicked? I don't have a "didselectrow at indexpath"?

DaveyonMayne-ok
Автор

Hey I just happend to come across this lesson. To store user data are you going to use firebase like in the other playlist? Or did I miss something/ Going to address storage in the future?

mrmonstahnta
Автор

Why does in the followButton.anchor, you have the top value as "topAnchor, " opposed to self.topAnchor? Is there a difference?

mauriciokiyama
Автор

Hello Brian! Thank you for another video, looking forward for next episodes. But I have another one question (bet it's not very common) - why do you avoid using stack views? Apple really pushes developers to use it. So what is your opinion about it?

Vyacheslavskiy
Автор

Brain u know ur Amazing one, , Really Thanks
keep going (Y)

raghadsoliman
Автор

Hi Brian, Is there any specific reason for using TextView? You could have use UILabel also.

souravgupta
Автор

I´ve not yet watch the tutorial but your getting a thumb up anyway!

josefsantamaria
Автор

Hi, Brian. Great video! It helps me a lot.
I have a question to ask: in the later stage of the video, you set the rightAnchor of the nameLabel to be the leftAnchor of the followButton and it works just fine for you. But I did this in my project and exception occured and says "because they have no common ancestor. Does the constraint or its anchors reference items in different view hierarchies? That's illegal." Could you tell what's wrong with this? Thanks a lot!

xuyunlong