XXNibBridge
bridges xib
file to storyboards or another xib file
Design time:
Runtime:
-
Build your class and it's xib file. (Same name required)
-
Put a placeholder view in target IB(xib or storyboard), Set it's class.
-
Override a class method to turn on bridging.
#import <XXNibBridge.h> @implementation XXDogeView + (BOOL)xx_shouldApplyNibBridging { return YES; } @end
中文介绍请见我的blog