0x00

在设置一个​​视图A​​​的​​frame​​​时,忘记设置它的高度了
然后又通过​​​视图A​​​的​​frame​​​来生成​​视图B​​​的​​frame​​​ 导致​​视图B​​的​​frame​​出现了无穷大​​∞​

po _msgView.frame
(origin = (x = 59.5, y = 92), size = (width = 194.5, height = 0))
_msgLabel.frame = CGRectInset(_msgView.frame, 15, 10);
po _msgLabel.frame
(origin = (x = +Inf, y = +Inf), size = (width = 0, height = 0))

直接导致​​崩溃!!!​


一个有趣的Button

​https://github.com/xjh093/JHLikeButton​