I have multiple detail Views, when i click on select second row in my rootViewController, i remove the detailView and add a newView from the appDelegate. When i do this im not able to send value from rootView to newDetailView.
this is what i do in my appdelegate
[splitViewController.view removeFromSuperview];
arcObj = [[Architecture alloc] init];
UINavigationController *detailNav=[[UINavigationController alloc]initWithRootViewController:arcObj];
[arcObj release];
splitViewController.viewControllers=[NSArray arrayWithObjects:rootViewController,detailNav,nil];
splitViewController.delegate=arcObj;
in rootVeiwController
NewdetailViewController.detailItem = @"gettingin";
In my newDetailView
- (void)setDetailItem:(id)newDetailItem {
if (detailItem != newDetailItem) {
[detailItem release];
detailItem = [newDetailItem retain];
}}
its not calling the method
- (void)setDetailItem:(id)newDetailItem
any help???
You need to use –