Apologies
You must be signed in to watch this lesson.
Sample Bad Fixes
Twitter Slide Out Menu
There are a few unfortunate results of animating UIView components using frames and rects. The first is that you'll find yourself doing quite a bit of math and performing unnecessary animations on different views. Secondly, its rather difficult to support both landscape and portrait orientations without adding another huge chunk of code to do the correct frame calculations. In this lesson, I'll demonstrate how one would attempt to do this and why it leads to so many problems.

Comments (5)
Dennisvm82
5 years ago
I really appreciate videos like these. Very interesting to see what kind of solutions you had in mind when you wrote the code. It feels really good when you finally find the best way to handle a set amount of functionalities with as little code as possible. Keep it up, Brian!
daniel123
5 years ago
I am curious why you hard code sizes like 300 for the menu width (for example) instead of using the super view's bounds/ frame. Also, this might be a good situation to clarify the difference between a view's frame and bounds. It is a very common interview question.
Brian Voong
5 years ago
daniel123
5 years ago
You are awesome. Thanks.
Tube
5 years ago
Welcome to today's episode of "Let's Break That App!" Seriously, my rethink is that we are writing a navigation controller, but putting it in a view controller. Perhaps, the menu should be hosted by our own navigation controller.
Brian Voong
5 years ago
waynefj40
5 years ago
These videos of deconstructing view layouts and animations are great. Really appreciate you taking the time in this video to go all the way with the wrong approach instead of just mentioning it briefly. Thank you
MehmetEmre
4 years ago
Hey Brain a quick question about side menu. When I opened the Notification Center or control center from the top app goes to the background and base controller sliding to left. How can solve that bug any idea ? thank you .
HELP & SUPPORT