Note that there are some explanatory texts on larger screens.

plurals
  1. POsetDetailItem:(id)newDetailItem not firing
    primarykey
    data
    text
    <p>I am updating my iPad app and I've got a list of options in the table of the split view controller, but it's not firing the setDetalItem is not firing. This will not be ported to the iPhone because of the form-factor (screen is too small).</p> <p>From the appDelegate class:</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { UISplitViewController *splitViewController = (UISplitViewController *)self.window.rootViewController; UINavigationController *navigationController = [splitViewController.viewControllers lastObject]; splitViewController.delegate = (id)navigationController.topViewController; UINavigationController *masterNavigationController = splitViewController.viewControllers[0]; JSLMasterViewController *controller = (JSLMasterViewController *)masterNavigationController.topViewController; controller.managedObjectContext = self.managedObjectContext; return YES; } </code></pre> <p>from the masterViewController:</p> <pre><code>-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { JSLDetailViewController *detailView = self.detailViewController; detailView.telegram = indexPath.row; NSLog(@"Did Fire 1"); } </code></pre> <p>And from my detailViewController:</p> <pre><code>- (void)setDetailItem:(id)newDetailItem { NSLog(@"Did Fire 2"); if (_detailItem != newDetailItem) { _detailItem = newDetailItem; // Update the view. [self configureView]; } if (self.masterPopoverController != nil) { [self.masterPopoverController dismissPopoverAnimated:YES]; } } - (void)configureView { // Update the user interface for the detail item. if (self.detailItem) { //self.detailDescriptionLabel.text = [[self.detailItem valueForKey:@"timeStamp"] description]; NSArray *mainQuestion = [self mainQuestionArray]; NSArray *subQuestion = [self subQuestionArray]; questionTitle.text = mainQuestion[telegram]; subQuestionOne.text = subQuestion[telegram][0]; subQuestionTwo.text = subQuestion[telegram][1]; } } </code></pre> <p>I understand that I may need to create an instance of the detailViewController in the appDelegate, but I am unsure as to how to do this. Most of the tutorials I have found build a split view from scratch or seem to be using an older version of the mechanism. Any tips you can give me would be greatly appreciated!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload