Crashing when navigate from second tabbar view to the detail view from a UITableView of the First tabbar view
My project was created by storybaord. There is a tabbar controller with two tab bar item, for example First and Second.

Then for the First view, it linked with the navigation controller.

There is a UITableView on my First Viewcontroller.

There is a seperate named detailview(with detailview controller).

The porject is working fine.

When the project stared running.

I can swipe between two views(First and Second)

UItableview can display the data I want, and when I tapped on the table cell,

Call the following:

DetailViewController *detail=[self.storyboard instantiateViewControllerWithIdentifier"@"Detail"];

[self.navigationController pushViewController:detail animated:YES];

it navigate to the detailview.,detailview is working fine, and I can navigate back to the rootview.

 
MY PROBLEM IS when I was in the detail view, I tab the UITabbar item to navigate to the Second View. This step is works, when I tap the UITabbar item to navigate back to the First View, it cause crashing.

 
Do anyone how this could happened?

I assume that I am calling an object that has been released, but I dont know how to keep the current status of detailview.

How can doing this?

 
Any idea would be appreciated

Thanks in advance.

Crashing when navigate from second tabbar view to the detail view from a UITableView of the First tabbar view
===

My project was created by storybaord. There is a tabbar controller with two tab bar item, for example First and Second.

Then for the First view, it linked with the navigation controller.

There is a UITableView on my First Viewcontroller.

There is a seperate named detailview(with detailview controller).

The porject is working fine.

When the project stared running.

I can swipe between two views(First and Second)

UItableview can display the data I want, and when I tapped on the table cell,

Call the following:

DetailViewController *detail=[self.storyboard instantiateViewControllerWithIdentifier"@"Detail"];

[self.navigationController pushViewController:detail animated:YES];

it navigate to the detailview.,detailview is working fine, and I can navigate back to the rootview.

 
MY PROBLEM IS when I was in the detail view, I tab the UITabbar item to navigate to the Second View. This step is works, when I tap the UITabbar item to navigate back to the First View, it cause crashing.

 
Do anyone how this could happened?

I assume that I am calling an object that has been released, but I dont know how to keep the current status of detailview.

How can doing this?

 
Any idea would be appreciated

Thanks in advance.
