XXNibBridge

Bridge xib file into another xib or storyboard

570
86
Objective-C

XXNibBridge

Installation

pod 'XXNibBridge', '~> 2.3.0'

or pod search XXNibBridge to check

Overview

XXNibBridge bridges xib file to storyboards or another xib file

Design time:

Runtime:


How to use

  1. Build your view class and its xib file. (Same name required)

  2. Put a placeholder view in target IB (xib or storyboard), Set its class.

  3. Conform to XXNibBridge and NOTHING to be implemented

        #import <XXNibBridge.h>
        @interface XXDogeView () <XXNibBridge>
        @end
    

Done:

How it works

中文介绍请见我的blog