Today Controller Cells
AppStore JSON APIs
Finally we're approaching the last section of our course, it's been quite a ride. For the last set of features, we'll dive into the Today page that consists of cells that can be tapped and zoomed in with fancy animations. Initially this might look difficult but it turns out to be quite simple once you see the magic behind it all. This lesson will focus on laying out the foundation of our cells. Enjoy.

Comments (7)
Yoel Lev
4 years ago
for some reason the navigation bar would not hide in viewDidLoad so i moved it to override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() self.navigationController?.isNavigationBarHidden = true }
Brian Voong
4 years ago
tsangaris
4 years ago
I did it in viewWillAppear(_ animated: Bool) { ... } and it worked. No luck if i did it in viewDidLoad()..
ncytimothy
4 years ago
Putting in viewWillAppear also worked for me, but I think it depends on where you put your rootViewController setup code in your createNavController function. Ensure that your rootViewController setup code (title and bar color I believe) is added **after** instantiating your Nav Controller. That makes sense, since if we setup before the nav controller is created, the setup is not picked up for the root
adam_rich
4 years ago
I was able to get the image added to the Today cell class but for some reason, it is not showing up in every cell and when I scroll it disappears from some sells any idea why this could be happening?
Stewart Lynch
4 years ago
If you define your imageView outside of your class, this will happen. I made the same mistake at first before I did a face slap.
jdhindsa
4 years ago
When I use: navigationController?.isNavigationBarHidden = true in ViewDidLoad, the navigation bar is not hidden. What's going on?
Brian Voong
4 years ago
jdhindsa
4 years ago
I'm trying to hide the navigation bar entirely. Neither line of code works. The nav bar is present both on the Today screen on the screen that presents when a user clicks one of the collection view cells. Not sure why it's not working... ?
peterjf2
2 years ago
Here is what worked for me. override func viewWillAppear(_ animated: Bool) { navigationController?.setNavigationBarHidden(true, animated: false) }
Aker
3 years ago
Newbie here, but really excited about learning this. Is it possible to use a looping image (gif, apng...) or short video instead of the garden image?
dclawson
3 years ago
I found this on Stack Overflow: https://stackoverflow.com/questions/27919620/how-to-load-gif-image-in-swift You'd have to check it out to see if it worked like you wanted!
Rio91
3 years ago
when i type in center the center in sperview doesnt show up? please help..
sepmotameni
3 years ago
Hi Brian, Quick question. This course and your YouTube videos have helped me tremendously. As I start to build my own app, I want to make sure my practices and code implementation strategies are clean, concise, and inline with current conventions/standards. Do you have any paid/free online service recommendation that does code review? Best, Sep
sepmotameni
3 years ago
Hey Brian, Any reason you use fileprivate rather than private? I read up on the documentation and didn't really understand the difference.
HELP & SUPPORT