12345678910111213141516171819202122232425262728293031323334353637 |
-
-
-
-
-
-
-
-
- #import "RNNSideMenuChildVC.h"
-
- @interface RNNSideMenuChildVC ()
-
- @property (readwrite) RNNSideMenuChildType type;
- @property (readwrite) UIViewController *child;
-
- @end
-
- @implementation RNNSideMenuChildVC
-
- -(instancetype) initWithChild:(UIViewController*)child type:(RNNSideMenuChildType)type {
- self = [super init];
-
- self.child = child;
- [self addChildViewController:self.child];
-
- [self addChildViewController:self.child];
- [self.child.view setFrame:self.view.bounds];
- [self.view addSubview:self.child.view];
- [self.view bringSubviewToFront:self.child.view];
-
- self.type = type;
-
- return self;
- }
-
- @end
|