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
- Setting View orientation to portrait is ignored
- How to force close ipad/iphone keypad when input element is not focused using JS?
- UIDocumentInteractionController presentation style
- iOS coordinates for iPad and iPhone game using spritekit
- What is the best practice when making a storyboard for iPhone and iPad?
- Exchange plist data between 2 iPad using iCloud
- an app supporting arm64 and armv7 running on arm64 and ios 7 ipad air
- My SIOSocket get disconneted automatically when i locked my ipad
- using livestream video in iOS application
- Always shown vertical and horizontal scroll indicator on a uiwebview
- Is it possible to opt your iPad app out of multitasking on iOS 9
- Bind html button click with objective c
- iPhone App won't run on ipad at 2x resolution
- Missing icon and storyboard files, iOS 7 and 8, Xcode 6
- iOS infinitely deeply nested TableView/UIGestureRecognizer view tree AND iPAD requires 2 finger scrolling on a tableview
Related Questions in UISPLITVIEWCONTROLLER
- race condition with rotation and split view in iPhone 6 Plus simulator
- How to reload MasterView Controller TableView from DetailViewController
- How to Hide MasterView in UISplitViewController in iOS
- Load photos to DetailViewController from NSMutableArray
- UISplitViewController detail replace segue opens as modal?
- Can't dismiss UISplitViewController presented modally in primaryOverlay mode
- UISearchController search bar misplaced when UISplitViewController mode is all visible
- Segue to detail view controller on landscape mode
- Back button in the Detail view
- UITabBarController UISplitViewController hidesBottomBarWhenPushed
- Warning: Attempt to present UIAlertController on UISplitViewController whose view is not in the window hierarchy
- Back button inside UISplitViewController disappears after rotate
- Missing back button in nested detail view (UISplitViewController)
- Back button is gone in split view
- UISplitViewController in UITabBarController - SplitView Navigation Bar Glitch / Bug or me doing something wrong?
Related Questions in UIPOPOVERCONTROLLER
- UIPopoverPresentationController not rendering properly
- How do I create a bouncing popover animation like this?
- UIPopoverController arrow not the same white as my UINavigationBar
- How to display a popover when user touches and holds a segment in segmented control (iOS)
- Changing permitted arrow directions of popover after displaying it
- Trying to dismiss a popover view controller with a table view inside of it
- drag behavior similar to loop dragging in iOS garage band
- Displaying UIDatePicker as Popover within UITableView on iPhone
- Proper way to present activity view controller n iPad
- Unwanted margin UIPopoverController
- popoverControllerDidDismissPopover not being called
- Search bar not showing on modal presentation view controller?
- Anchor a popover to the rect of a selected textRange in textView iOS
- How can I slide my popover from the bottom of the screen with Swift?
- Popover presentation on an iPhone using UIPopoverPresentationController
Related Questions in UISPLITVIEW
- Cell content of a Table View that is part of UISplitView is not being rendered
- Tab bar in Split View Controller Root - How to connect to Detail View?
- xcode ios 5 Master-Detail Application with Storyboard
- iAd rotation issue with UISplitView
- Changing MasterViewController width in UISplitViewController iOS 8 iPhone not working
- Alternative to UISplitViewController without need for it to be rootViewController
- How to make multiple rows selection in UITableView subview of UISplitView?
- reload tableview in masterviewcontroller when make changes in detailsviewcontroller
- iOS / Master Detail : how to pop the subdetail view when switching detail from the master controller?
- How to select single control in UITableView in iOS ipad aap?
- Showing fall back screen for UISplitview Secondary view when Object array is empty
- Split view controller shows only one childviewcontroller
- searchBar from UISearchController not showing correctly on split view on iPad
- Force UISplitViewController (which is programmatically made rootViewController) to start with master view on iPhone in Swift
- how to change the master and detail in UISplitViewController - iOS 11
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 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.