Reuse a uiview xib in storyboard
问题 I typically like to create and design my uiviews in interface builder. Sometimes I need to create a single view in a xib that can be reused in multiple view controllers in a storyboard. 回答1: Reuse and render a xib in a storyboard. Tested with Swift 2.2 & Xcode 7.3.1 1 ---- Create a new UIView named 'DesignableXibView' File > New > File > Source > Cocoa Touch Class > UIView 2 ---- Create a matching xib file named 'DesignableXibView' File > New > File > User Interface > View 3 ---- Set the file