Previous change broke iPad version. Apparently, viewWIllLayoutSubviews is needed for iPad and must not be there for iPhone.