When I use some kind of user interface in Interface Builder from a module / framework, everything works fine. But if I write an extension for this class in my project and install my own class (in Interface Builder), Interface Builder will install a custom class module - this is my project. And when I try to use this custom class in code, Xcode will say:
"Unknown class _TtC9*modulename*18*MyCustomLabel* in Interface Builder file."
Example:
- TTTAttributedLabel is added to the new project as a separate module (or throws cocoapods).
- Add a simple UILabel to the storyboard and set the custom class as TTTAttributedLabel
- Add an Outlet for Encoding and Printing (NSLog) of this label.
Xcode write that it is TTTAttributedLabel.
- add empty extension to TTTAttributedLabel
extension TTTAttributedLabel{ }
- Interface Builder;
- (NSLog) ;
Xcode , - UILabel.
Builder , , - ?
: swift, xcode6.3-7.3