https://github.com/sferrini/sfnibloader
Load your custom view (XIB) in your storyboard.
https://github.com/sferrini/sfnibloader
Last synced: 2 months ago
JSON representation
Load your custom view (XIB) in your storyboard.
- Host: GitHub
- URL: https://github.com/sferrini/sfnibloader
- Owner: sferrini
- Created: 2015-01-28T01:05:31.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-28T16:22:42.000Z (about 10 years ago)
- Last Synced: 2024-12-25T19:09:03.118Z (4 months ago)
- Language: Objective-C
- Homepage:
- Size: 160 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SFNibLoader
Load your custom view (XIB) in your storyboard.### Installation:
- Manually: Copy the `SFNibLoader` class into your project.
- CocoaPods: (Soon available)### Usage:
In your `UIViewController` class, import:
```
#import "SFNibLoader.h"
```Interface with the `UIView` you created in the storyboard:
```
@property (weak, nonatomic) IBOutlet UIView *myView;
```And in the `viewDidLoad` method:
```
[SFNibLoader loadNibNamed:@"MyCustomViewNibName" inView:self.myView];
```### Result:
![]()
![]()
![]()