pod 'XXNibBridge', '~> 2.3.0'
or pod search XXNibBridge
to check
XXNibBridge
bridges xib
file to storyboards or another xib file
Design time:
Runtime:
Build your view class and its xib file. (Same name required)
Put a placeholder view in target IB (xib or storyboard), Set its class.
Conform to XXNibBridge
and NOTHING to be implemented
#import <XXNibBridge.h>
@interface XXDogeView () <XXNibBridge>
@end
Done:
中文介绍请见我的blog