Asks the delegate to provide the new secondary view controller for the split view interface.
- iOS 8.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The split view controller whose interface is expanding.
The primary view controller in the expanded split view interface. If you implement the
primarymethod in your delegate, this object is the one returned by that method.
View Controller(for Expanding:)
The view controller to use as the secondary view controller in the expanded split view interface or
nil to let the split view controller choose an appropriate secondary view controller for you.
Use this method to designate the secondary view controller for your split view interface and to perform any additional cleanup that might be needed. After this method returns, the split view controller installs the newly designated primary and secondary view controllers in its
When an interface collapses, some view controllers merge the contents of the primary and secondary view controllers. This method is your opportunity to undo those changes and return your split view interface to its original state.
When you return
nil from this method, the split view controller calls the primary view controller’s
separate method, giving it a chance to designate an appropriate secondary view controller. Most view controllers do nothing by default but the
UINavigation class responds by popping and returning the view controller from the top of its navigation stack.