Add check for invalidateIntrinsicContentSize to allow iOS 5 compatibility.