RMNibLoadedView 1.0.1

RMNibLoadedView 1.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2016

Maintained by MaxPetrovsky.



  • By
  • Maks Petrovsky

Support for views loaded from NIB/XIB files from code and interface builder. Respects IBInspectable / IBDesignable options. Inspired by https://github.com/konoma/nib-loaded-views.

Alt Text

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

RMNibLoadedView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "RMNibLoadedView"

Usage

Create a view subclass of RMNibLoadedView .If you want to view be watchen in storyboards add IB_DESIGNABLE tag before @inteface CustomView :RMNibLoadedView. Create a xib which will have views. By default RMNibLoadedView loads xib with the class name in class bundle and using first view. You can customize it by changing nibName and nibViewIndex in interface builder or from code.

Author

Maks Petrovsky, [email protected]

License

RMNibLoadedView is available under the MIT license. See the LICENSE file for more info.