Our UI currently looks a little strange with the company images and names aligned incorrectly. Let's fix this issue by introducing our own Custom Company Cell that will allow use to configure the cells a lot easier. We'll be passing our company object to this class to minimize the code that is in our CompaniesController file.

Comments (9)
sekjn0
5 years ago
Hello Brian, Stupid question perhaps but where are the pictures stored? I don´t have the pictures of the company leaders you have but I get instead some pictures of the nature in Iceland. I would like to put some better pictures where they are stored but I can't understand where that is!
Brian Voong
5 years ago
nerddd
5 years ago
Hey Brian, Why do you allow the CompanyCell (View) to know about the data it consumes (Model)? I suppose according to MVC architecture the View shouldn't know anything about the Model.
Brian Voong
5 years ago
Dejan Ribnikar
5 years ago
Hi Brian, I love your videos! There is one thing that you might find useful though. When you are setting constraints for views, you always use imageView.leftAnchor.constraint(view.leftAnchor).isActive = true. I found a better method for this: NSLayoutConstraint.activate([ imageView.leftAnchor.constraint(view.leftAnchor), ... ])
Brian Voong
5 years ago
magic
5 years ago
Very very very very very useful information!!! Thank you so much!
xuhua
4 years ago
为何这么牛逼
Brian Voong
4 years ago
xuhua
4 years ago
老师您中文英文都这么6,到底是哪国人啊?
Brian Voong
4 years ago
Cinquain
4 years ago
Fire Fire!
Cinquain
4 years ago
Classy!
Brian Voong
4 years ago
Cinquain
4 years ago
I've been coding too... not just studying
Nikolay Pochekuev
3 years ago
Hi Brian, for some reason UINavigationBar became transparent after XCode update. Do you know how to fix this?
Brian Voong
3 years ago
Nikolay Pochekuev
3 years ago
Thank you Brian! I will try to implement this code in my program
Manish Prakharan
2 years ago
How to print UIViewAlertForUnsatisfiableConstraints? I am getting constrains broken The error follows:-> ( "<NSLayoutConstraint:0x60000004bb60 UIView:0x7fdbbcc43920.width == - 16 (active)>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x60000004bb60 UIView:0x7fdbbcc43920.width == - 16 (active)> Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
Manish Prakharan
2 years ago
Not able to trap this ?? hey brian need help
Brian Voong
2 years ago
Manish Prakharan
2 years ago
I found it it’s the unfixed error from Apple. This constraint appears in animation style just after presenting. If you animate to false while making the AlertViewController to false the bug disappears unexpectedly. I cannot explain how. Or remove the debug logs while presenting. So no logs for constraint broken for UIAlertViewController
Manish Prakharan
2 years ago
https://stackoverflow.com/questions/31239934/disable-autolayout-constraint-error-messages-in-debug-console-output-in-xcode
HELP & SUPPORT