I want to display another ViewController
which must be copy of current ViewController
with same UI(empty new tab like in Safari) when a button is clicked in current ViewController
. For clear understanding, when we click + button iOS Safari then new tab in Safari is opened. I want to include this feature in my project.
Having a copy loaded is not like a new tab. You're looking to create a new instance of the same view controller. So, just instantiate it again with a new instance variable.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.