Hello. Thank you for your continuous support.
I have a program that looks like a Todo list.
Dependencies are
1:mypage->Create to do->Details to do is a dependency of viewcontroller, but
There is another dependency, 2:mypage->List of things to do->Details to do.
So I want to write a program that goes through the flow of 1 and returns to the flow of 2.
The language is swift2.0.
Please help me.
UINavigationController
can be used in setViewControllers(_:animated:)
UINavigationController
is just a stack of ViewController
classes.You may normally use push/pop
, but you can use setViewControllers()
to directly manipulate the contents of the UIViewController
stack.
Implementally, change the screen transition method from push
to set
.At this time, pass SetViewControllers()
to Array
of ViewController
of [mypage, create, do details]
.
In the first place, I felt a little uncomfortable with the screen transition.
If you are trying to match the specifications to the web version,
Why don't you use the UINavigationController
?
The web screen transition and UINavigationController
are
I think it's very friendly.
Rather, in the web version,
Going back to flow 2 through flow 1
I wonder how it's happening (or what exactly
)
I don't know if it's a transition or not.)
After analyzing it properly in the web version,
UINavigationController
If you do the same on a base
I think it's good.
"At that time, the keyword ""back"" that you are using now is
"
I think it is necessary to clarify specifically what to do.
If it's the web, you can say "back" but
Back to the previous screen with the
Back button on the browser.
Transition to the same URL as the original screen by using the Back button in the screen
(Actually creating a new screen instead of going back)
There are two types of cases.
"By the way, ""I'm using a segment instead of a UINavigationController"""
It says UINavigationController
whether to use it or not
Whether or not to use Segue is a completely different story.
Configure the screen with UINavigationController
and transition with push segment
You can also do it.
I understand that.
·UINavigationController
is not used
That means
·Using Segue
that
Am I correct in understanding that the above two sentences are just represented in one sentence?
© 2024 OneMinuteCode. All rights reserved.