Hi.
I'm having a problem wiht the popOverController in portrait mode of an splitViewController.
I have the common UITableView whit customer names so if you touch one of them his personal data are loaded in UITextBoxes of CustomerDetailView. It's working correctly on landscape mode, but in portrait doesn't.
I debug step-by-step, and it the workflow is correct, calls the detail.setSelectedItem function, the configureView and loads the UITextFields (Outlets are set) texts are filled whth literal strings (to avoid nil element) but nothing is shown in this textBoxes.
I'm very, very lost. Some could helpme.
That's the code I use for creating UISplitViewController programatically.
- (IBAction) buttonClientes_click:(id)sender
{
RootClientesViewController *rootClientes = [[RootClientesViewController alloc] initWithNibName:@"RootClientesViewController" bundle:nil];
DetailClientesViewController *detClientes = [[DetailClientesViewController alloc] init]; //WithNibName:@"DetailClientesView" bundle:nil];
rootClientes.navigationItem.title = @"Clientes";
rootClientes.detailViewController = detClientes;
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:rootClientes];
detClientes.rootViewController = rootClientes;
[delegate.splitViewController setViewControllers:[NSArray arrayWithObjects: navController, detClientes, nil]];
delegate.splitViewController.delegate = detClientes;
//delegate.detailViewController = detCampanha;
[delegate.window bringSubviewToFront:delegate.splitViewController.view];
[self transitionToSplitViewController];
}
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
And here's is the DetailView didLoad event
- (void)viewDidLoad {
[super viewDidLoad];
delegate = (RF_iPad_CRM_ClientAppDelegate*)[[UIApplication sharedApplication] delegate];
self.popoverController = [[UIPopoverController alloc] initWithContentViewController:self.rootViewController]; }
What I could be doing worgn?
Thanks in advance!