1
뷰를 슬라이드하고 ViewController를 넣는 코드를 찾았지만 ViewController를 넣고 싶지 않습니다. 슬라이드 메뉴에 추가해야하는 뷰는 동일한 viewcontroller에 있습니다. 이 UIView를 밑줄 친 슬라이드에만 추가하면됩니다.페이 스북 응용 프로그램으로 슬라이드 메뉴
OBS :이 프로젝트에서는 스토리 보드를 사용하지 않습니다.
underLeftViewController
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
// shadowPath, shadowOffset, and rotation is handled by ECSlidingViewController.
// You just need to set the opacity, radius, and color.
self.view.layer.shadowOpacity = 0.75f;
self.view.layer.shadowRadius = 10.0f;
self.view.layer.shadowColor = [UIColor blackColor].CGColor;
if (![self.slidingViewController.underLeftViewController isKindOfClass:[MenuViewController class]]) {
self.slidingViewController.underLeftViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Menu"];
}
[self.view addGestureRecognizer:self.slidingViewController.panGesture];
}