title: How to set a custom UIView's height according to its width given by auto layout?
body: <p>Just like the UILabel does. If you set the numberOfLines 0, it will automatically calculating a height according to the width by auto layout.</p>