Closed MadeByDouglas closed 5 years ago
I've done more research on this and still nothing. In general, if the search is disappearing when
self.definesPresentationContext = true
people suggest making sure navigation controller bar is translucent or setting self.extendedLayoutIncludesOpaqueBars =true
however none of these worked. Any ideas?
video of what i mean https://vimeo.com/179602273
same problem here , has anyone found a solution yet ?
Any solution? I'm having very similar problem.
Having same issue. If it's not on the first page the search bar disappears if definesPresentationContext
is true
(on the view controller). Need this because otherwise you get weird UI with the search bar floating because the search bar is presented onto the root view controller if nothing else has this flag set to true.
Tried setting it in the container pager controller but it caused the search bar to be vertically offset when activated. Plus it doesn't fix the problem with the search bar staying visible when switching pages.
Also seeing a bunch of these in the console when activating the search bar:
+[CATransaction synchronize] called within transaction
EDIT:
My workaround is just to use a UISearchBar
directly; Had to do a bit more setup with the cancel buttons and didBeginEditing
etc but it isn't that much more work.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
So if a viewController has a UISearch Controller and it is index 0 (the first page in MXSegmentedPager) it works fine, whether you set
self.definesPresentationContext = true
orfalse
. However, if you setself.definesPresentationContext = true
and its in another index the search controller disappears when you touch it. My workaround is to setself.definesPresentationContext = false
which works but creates other UI changes as now the searchController affects the other controllers in the stack.Any ideas?