On the end of chapter 4, the challenge ask to code a view and center it on the screen. While i was able to build the view, not able to properly center it on the Y-axis. I saw the challenge solution, but it has the same issue as well. Here i added a screenshot for the result. It seems the view is bit down of the Y-center coordinate
Here is the github url
For this one, I would say don’t worry about it and move on. The tableview has additional height behind the navigation elements that are contributing to where “centre” is. The approach being used (adding a subview directly to the table view) is probably discouraged by Apple, and definitely doesn’t scale well. For example If you had enough contacts to fill your screen 2.5 times over, tapping the “i” for rows near the start or end of the list would result in contactPreviewView
being out of view. As soon as you had enough contacts for scrolling to be required, contactPreviewView
would become further and further off centre.