Open Corotata opened 7 years ago
把 YYLabel.h 第336行 IB_DESIGNABLE 注释掉就可以了。 YYTextView同理。
这应该是storyboard的一个bug
TTTAttributedLabel includes IBInspectable and IB_DESIGNABLE annotations to enable configuring the label inside Interface Builder. However, if you see these warnings when building...
IB Designables: Failed to update auto layout status: Failed to load designables from path (null) IB Designables: Failed to render instance of TTTAttributedLabel: Failed to load designables from path (null) ...then you are likely using TTTAttributedLabel as a static library, which does not support IB annotations. Some workarounds include:
Install TTTAttributedLabel as a dynamic framework using CocoaPods with use_frameworks! in your Podfile, or with Carthage Install TTTAttributedLabel by dragging its source files to your project
copy from TTTAttributedLabel