Changed line 344 to [self layoutIfNeeded];

The change fixes Sample app from crashing when starting.