swift - Setting up iOS Navigation Elements -
i having difficulty figuring out how set uinavigationcontroller result want. succinctly, want mimic navigation of app briefme.
specifically, want:
- a main view (v#1) segues new view controller (v#2) embedded uiwebview
- to permanently hide/disable navigation bar , toolbar on v#1, want toolbar on v#2 (ideally shows/hides on swipe -- figure can solved uigesturerecognizer if not through navcontroller's hide on swipe/tap property)
- v#2 segue v#1 on swipe left edge of screen, default navcontroller behavior, shown here.

i've run 2 problems attempt set up:
- i can't permanently hide navigation/toolbar on v#1 while leaving v#1+#2 embedded in navcontroller. without navcontroller, don't retain swipe-to-segue functionality when v#2 @ top of stack
- allowing webview scroll disables/'intercepts' swipe-to-segue functionality. thought disable interaction webview, place webview in scrollview, , allow vertical scrolling on scrollview. allow swipe-to-segue work?
if understand questions correctly:
we’re still popping controller stack during transition. add navigation bar subview of controller’s view @ top of stack , set event manually.
we ended using version of answer specified here. added invisible thin column overlaying left side of webview because webviews still giving trouble.
hope helps!
Comments
Post a Comment