I don't know how to load my page as it is, When i press back button. I have two type of pages storyboard and xib. Which display all information, When i click go button it will taken to new page. All these working good, But my problem is when i press back button i need my storyboard and xib file should be display in same view. When i run my app it display only storyboard page xib didn't load.
Thanks for advance here's my code:
- (IBAction)back:(id)sender {
Recharge *view = [self.storyboard instantiateViewControllerWithIdentifier:@"Recharge"];
[self presentViewController:view animated:YES completion:nil];
self.recharge = [[mobileViewcontroller alloc]init];
self.recharge.view.frame = CGRectMake(0,100, 400, 400);
[self addChildViewController:self.recharge];
[self.view addSubview:self.recharge.view];
}