I'm trying to implement a UISplitViewController which has different UIDetailViewControllers. I've created a delegate that all the detail views implement. It only has a UIBarButtonItem which is the button used to access the master view in portrait mode. All works well with one exception: when I replace the detail view controller, the button doesn't appear. In my master view controller, which is where I implement the UISplitViewControllerDelegate, the shouldHideViewController is called but the willHideViewController isn't. I checked that the shouldHideViewController returns YES. Any idea of what could make the shouldHideViewController being called but not the willHideViewController? Shouldn't they always be called together, if the first one returns YES? If I rotate the device after replacing the detail view, everything works fine.
Why is shouldHideViewController called but not willHideViewController?
1.1k Views Asked by Adriana At
1
There are 1 best solutions below
Related Questions in OBJECTIVE-C
- How to control the volume of an iPhone programmatically in objective-c
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- How to set value the descriptor of iOS BLE in Objective-C?
- Unexpected #selector() Behavior in Swift-Objective-C Interop?
- In what context can we use an unqualified #selector() expression in Swift?
- AVPictureInPictureController crashes during initialization
- How to use pow() in Objective-C?
- How to change the image on the MGSwipeButton in MGSwipeTableCell
- Using sort descriptors in Outline View
- Why is my Swift function not printing from inside the dataTask closure?
- Using UICollectionViewCell with IBOutlet
- Undefined symbol: _OBJC_CLASS_$_ only on simulator
- Why can't I receive a notification sent from Camera Extension(Swift) to an observer application (obj-c++)
- Behavior of __block modifier in objc
- Inserting subview into view where I've added subviews and sublayers
Related Questions in IPAD
- Site loads on iPad/Chrome but not on iPad/Safari
- Possible to use NFC for iPad
- Intune IpadOS disable Safari quick notes
- Does anyone know how to make iPad layout the same as iPhone's? Size wise the text and overall layout get's smaller when I run the app on the iPad
- How to setup different launch screen image for iPad portrait and landscape mode?
- Appear Circles in ZStack exact image position as navigationSplitView (.balanced) opens or close
- Can I use VS code on Ipad
- Webapp exiting fullscreen when dragging mui slider in iPads
- Why are pointer events disabled when using Apple's pencil in Safari?
- @media print @page margins not working on Mac Safari and iPad
- FontAwesome Icons displays as white on iPad instead of Black as on other platforms making them almost invisible
- SwiftUI .autocorrectionDisabled() behavior not updating with @State BOOL
- SwiftUI Previews Multitasking Options
- Flutter - how to prevent an app being closed by user on IpadPro (iPadOs 17)
- ipadOS 17.4: AVCaptureMetadataOutput delegate not called (qrscanner)
Related Questions in UISPLITVIEWCONTROLLER
- Navigation bar in UISplitViewController not shown in Supplementary View
- Reliably knowing when UISplitViewController shows the primary view
- Apple does not support UISplitViewController.DisplayMode.PrimaryOnly as splitViewController.preferredDisplayMode
- UITabBarController as secondary controller in UISplitViewController is producing 2 navigation bars in compact view
- Disable Sidebar of NavigationSplitView programmatically
- UISplitViewController's detailViewController is nil when overrideUserInterfaceStyle is set to .dark
- UISplitViewController displays button to change the display mode even when presentsWithGesture = false
- UISplitViewController - rightBarButtonItem on the primary view controller does not work
- Adding Behavior to Transition Buttons in UISplitViewController for Different Display Modes
- inputAccessoryView getting hidden on UISearchBar activation in UISplitViewController
- iOS does an unwanted pop of the navigation controller when the phone rotates
- View's layout is not entirely in the range of the primary view area
- Swift / React Native How to know split view / slide over app's position relative to the whole screen?
- Drawing issues using SwiftUI view as a PrimaryView in uisplitviewcontroller
- How to preserve split view divider configuration in Mac Catalyst app?
Related Questions in UISPLITVIEWDELEGATE
- How to detect when user toggles sidebar hidden in split view controller to preserve secondary only display mode?
- Swift iOS- Trigger action when SplitViewController's displayModeButtonItem is tapped
- How to hide Detail View Controller in UISPlitViewController When Orientation Changes to Landscape
- How to show split view controller on tab bar from different storyboard?
- How to make the views refresh between detail & master view controllers of UISplitViewController?
- UISplitViewController: How to prevent expansion when rotating from Compact to Regular
- How to be notified when UISplitViewController pops to master on iPhone mode?
- UISplitView showDetailViewController: not working on a device
- UISplitViewController: some delegate methods not fired
- UISplitView with Multiple Detail Views (with Storyboard)
- not working UISplitViewController - WillHideViewController not called in monotouch
- UIAlertView in UISplitViewController's DetailView not triggering UIAlertViewDelegate Code
- How do I implement a UISplitview in a UITabBarController with storyboards?
- ios UISplitViewController issue
- UINavigationController & SplitViewController
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Did you set the delegate in awakeFromNib: or viewDidLoad: ?
If you set in viewDidLoad - your delegate won't be set when in storyboard