Fix MPAppsVC pager positioning on 4".
[FIXED] Manually added pager VC added to wrong superview.
This commit is contained in:
parent
e3d8d3c31c
commit
3086baf523
@ -51,10 +51,9 @@
|
|||||||
options:nil];
|
options:nil];
|
||||||
self.pageViewController.dataSource = self;
|
self.pageViewController.dataSource = self;
|
||||||
self.pageViewController.delegate = self;
|
self.pageViewController.delegate = self;
|
||||||
|
self.pageViewController.view.frame = CGRectFromOriginWithSize( CGPointZero, self.pagePositionView.bounds.size );
|
||||||
[self addChildViewController:self.pageViewController];
|
[self addChildViewController:self.pageViewController];
|
||||||
[self.view addSubview:self.pageViewController.view];
|
[self.pagePositionView addSubview:self.pageViewController.view];
|
||||||
self.pageViewController.view.frame = self.pagePositionView.frame;
|
|
||||||
[self.pagePositionView removeFromSuperview];
|
|
||||||
[self.pageViewController didMoveToParentViewController:self];
|
[self.pageViewController didMoveToParentViewController:self];
|
||||||
|
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
|
Loading…
Reference in New Issue
Block a user