when i click back button then controller back to menu but crash the application ?
-(void)launchselfEvalutionFromPresidentDetailViewController
{
Self_Evalution_Page *self_page=[[Self_Evalution_Page alloc]initWithNibName:@"Self_Evalution_Page" bundle:nil];
[self.navigationController pushViewController:self_page animated:YES];
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
self.pageController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options:nil];
self.pageController.dataSource = self;
[[self.pageController view] setFrame: CGRectMake(0,[topBar bottom] + 5,320,500)];
SelfEvalutionTableView *selfObj=[self viewControllerAtIndex:0];
NSArray *viewControllers = [NSArray arrayWithObject:selfObj];
[self.pageController setViewControllers:viewControllers direction:UIPageViewControllerNavigationDirectionForward animated:NO completion:nil];
[self addChildViewController:self.pageController];
[[self view] addSubview:[self.pageController view]];
[self.pageController didMoveToParentViewController:self];
}
i used this code for move forward .but i click back button application crash.