- Create a subclass of NBLoadableFromXibView
- Create a XIB file and set it's owner to the subclass you just created
- Design the xib just as you want, drag outlets, the normal stuff.
- Either add the view via code, or through the storyboard.
See the example project if you have any trouble.
To run the example project, clone the repo, and run
pod install from the Example directory first.
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
To integrate NBLoadableFromXibView into your Xcode project using CocoaPods, specify it in your
source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' use_frameworks! pod 'NBLoadableFromXibView', '~> 0.1.0'
Then, run the following command:
$ pod install
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update $ brew install carthage
To integrate NBLoadableFromXibView into your Xcode project using Carthage, specify it in your
github "tskulbru/NBLoadableFromXibView" ~> 0.1.0
carthage update to build the framework and drag the built
NBLoadableFromXibView.framework into your Xcode project.
NBLoadableFromXibView is available under the MIT license.
See the LICENSE file for more info.