Latest 0.1.0
Homepage https://github.com/tskulbru/NBLoadableFromXibView
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

Language
CI Status
Version
Carthage compatible
License

Usage

  1. Create a subclass of NBLoadableFromXibView
  2. Create a XIB file and set it’s owner to the subclass you just created
  3. Design the xib just as you want, drag outlets, the normal stuff.
  4. 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.

Installation

CocoaPods

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 Podfile:

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

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 Cartfile:

github "tskulbru/NBLoadableFromXibView" ~> 0.1.0

Run carthage update to build the framework and drag the built NBLoadableFromXibView.framework into your Xcode project.

Author

Torstein Skulbru

License

NBLoadableFromXibView is available under the MIT license.

See the LICENSE file for more info.

Latest podspec

{
    "name": "NBLoadableFromXibView",
    "version": "0.1.0",
    "summary": "Easily create a reusable xib and class to put anywhere.",
    "description": "Wouldnt it be cool if you could easily drop a UIView on your storyboard set its class and have it automatically loaded from another XIB file? Using this library you can do just that. You can easily create reusable components, just subclass NBLoadableFromXibView, create a XIB and set its file owner to the subclass.",
    "homepage": "https://github.com/tskulbru/NBLoadableFromXibView",
    "license": "MIT",
    "authors": {
        "Torstein Skulbru": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tskulbru/NBLoadableFromXibView.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/tskulbru",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "NBLoadableFromXibView": [
            "Pod/Assets/*.png"
        ]
    },
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This