摘要:
content Hugging Priority不想变大 ,值越大,越不会变大 Content Compression Resistance Priority不想变小 ,值越大,越不会变小 阅读全文
摘要:
//文字在左,图片在右 CGFloat imageWidth = self.button.imageView.frame.size.width; CGFloat labelWidth = self.button.titleLabel.frame.size.width; self.button.ima 阅读全文
摘要:
* API: Character Attributes , NSAttributedString 共有21个属性* * 1. NSFontAttributeName ->设置字体属性,默认值:字体:Helvetica(Neue) 字号:12 * 2. NSParagraphStyleAttribut 阅读全文
摘要:
1、ios 11以前设置tableview section的header和footer高度,只用写设置高度的方法即可,但是iOS11还要设置header和footer的view 阅读全文