IPad SplitViewController UI - Copy Apple Mail App

Ok, so I already asked a similar question, but now I have another problem on the same problem! I am creating an iPad application and trying to reproduce the user interface of the Apple Mail application. Initially, I could not update the DetailView, because I did not update the delegate when I clicked the new navigation controller in the left view, this was allowed with:

newRootViewController.myDelegate = self.delegate;

I have included functionality from the Apple MultipleDetailViews sample code to enable more than one detailed view (using <SubstitutableDetailViewController>), but this stops the shortcut from updating on the detailed view.

I can solve this problem by removing the connection between splitViewController and RootViewController using IB, and then refresh the shortcut, although this [obviously] stops the operation of several detail view functions ... any ideas?

+3
source share
1 answer

I have not seen an example of MutipleDetailViews, but I assume its a delegate.

When you select a cell at the root, it delegates the details. In the previous question, you change the root by clicking the new one on the navigator; it required you to set the delegate of the new root to the same delegate of the previous one.

Your root look indicates your original details.

, , , ( ), ( )

( ), (/ ).

/ , NSNotificationCenter

:

[NSNotificationCenter defaultCenter]
  addObserver:self
     selector:@selector(handleSomethingDidHappen:)
         name:ClassCSomethingDidHappenNotification                
       object:aClassCObject];
+3

Source: https://habr.com/ru/post/1767553/


All Articles