Changed line 344 to [self layoutIfNeeded];

The change fixes Sample app from crashing when starting.
Merge pull request #38 from neowinston/master

Fixes infinite loop caused by [self layoutSubviews]