CocoaPods trunk is moving to be read-only. Read more on the blog, there are 11 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Apr 2015 |
Maintained by Chase Holland.
To run the example project, clone the repo, and run pod install from the Example directory first.
NibView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "NibView"This is a super simple pod for those times when you want to create a UIView from a nib (.xib), but you're tired of typing all the extra code to do the automatic loading when you add your custom nib-based view to another view or view controller.
I chose to hijack the "UI" name prefix because there isn't anything called UINibView, and I don't expect a similar class from Apple in the future. If it does become a thing, you don't need this pod anymore! Also, "UINibView" was what I expected it to be named when I used it, so I went with it.
All you need to do (after installing the pod) is
ie. If your subclass is called MyView, your nib would be named MyView, too. So you'd have MyView.h, MyView.m, and MyView.xib.
See the example file for more details, or feel free to open an issue or send me an email for further clarifications!
Chase Holland, [email protected]
NibView is available under the MIT license. See the LICENSE file for more info.