This line is to ensure the tableview frame is actually well centered inside the main view frame. Otherwise, we get very strange frame vertical shifts. I must say I tried but I've never succeded to solve these frame shifts other than by adding this line. Changing the frame of the tableView during its init has no effect.