I push a UITableViewController into a NavigationController (the NavController returned in the 0th element of a call to UISplitViewController viewControllers). I set this TVC to be the UISplitViewControllers delegate. The newly pushed TVCs delegate functions are getting called as they should but they are called with the popoverController from the previous TVC. (That is the next guy down in the stack) Therefore the size of the popoverController is wrong. I can hack my way around this with popoverController.popoverContentSize, but I would like to fix the underlying problem. I see the underlying problem being: that the SplitViewController is calling its delegate with the wrong popoverController in the delegate function willHideViewController. Any suggestions?
UISplitViewControllerDelegate willHideViewController sends wrong popOverController
797 Views Asked by StoneBreaker At
1
There are 1 best solutions below
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 UIPOPOVERCONTROLLER
- How to get iOS popover view to position correctly within the bubble
- iOS 17 UIKit Popover Crash on iPad - UIPopoverPresentationController should have a non-nil sourceView
- Popover in iOS not displayed near or relative to a button
- How to grow a popover controller
- Popover crash when update value using UIViewControllerRepresentable
- How Can I Float A View Over A Displayed Popover, in IOS?
- CollectionView / TableView is considering Popover Arrow direction width and its not centering the position
- UIPopOverPresentationController crashes on presentationTransitionWillBegin
- Changing the iOS 13 UIPopoverPresentationController blur and shadow amount?
- Popover View positions to wrong place when rotated
- How do I fix error " 'UIPopoverController' is deprecated"?
- Navigate from popUpVC to newVC in ios Swift
- Swift BarButtonItem doesn't update
- UIPopOverPresentationViewController from a Container ViewController
- Difference between 2 adaptivePresentationStyle methods of the UIPopoverPresentationControllerDelegate protocol
Related Questions in UISPLITVIEW
- Adding a custom label to a prototype cell in a split view
- how to change the master and detail in UISplitViewController - iOS 11
- UISplitViewController inside UITabBarVC: showDetail and hide tab bar
- Add a button on top (floating) of UISplitView - Swift
- Swift 3 how to present splitview controller modally?
- in iPad screen it is not displaying split view
- Show detail Segue is not working when I use with manual
- How to show split view controller on tab bar from different storyboard?
- Swift 3 - UISplitViewController - Hide/Expand Master View in Landscape (e.g. Notes App)
- Split view controller shows only one childviewcontroller
- Showing fall back screen for UISplitview Secondary view when Object array is empty
- Force UISplitViewController (which is programmatically made rootViewController) to start with master view on iPhone in Swift
- Disable sending gestures for UIControl subclass
- Single Nav Bar for UISplitView
- Hide gray box in UiSplitView when animating to PrimaryHidden from PrimaryOverlay in iPhone
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?
I would definitely not make the
UITableViewControllerthat gets pushed on a stack the delegate for theUISplitViewController-- I don't see the advantage to making it the delegate, especially since it would appear in the master side, and it also disappears as soon as the back button gets hit. I make the detail view the delegate, since it's always present, and it's the view controller that will have to handle hiding/showing popovers, anyway.