this fix crash on ios 7, when layoutSubview and contentNot visible

It fix crash on iOS 7.