Xcode creates an action when switching views
source link: https://www.codesd.com/item/xcode-creates-an-action-when-switching-views.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Xcode creates an action when switching views
hi there im having real trouble i have a main view which i am able to switch to 2 new views and i am able to switch back from both them views to the main view which is amazing
but i would like when i switch back from say the first new view to the main view i want a label to display text
and the same thing to happen when switching back from the second new view but with a different label
so to sum it up i want to switch views and have a label saying i switched back from view 1 being controlled by the button used to switch back
any help would be amazing
Just put empty UILable on Main View. And set its value when you are doing transitions form first view to main view or 2nd view to main view.
Related Articles
UI-Router: how to keep the views when switching views
UITabBarController Force to Rotate When Switching View
iOS Crash When Switching View Controllers
Keep UI status from ViewModel when switching views
create an action when the tableView cell in swift has touched or clicked
Rails: How do I call a controller to create an action without changing views?
Why does AVAudioPlayer Stop not work when switching views?
Strange behavior when switching view from view controller?
Skeleton puppet - Add visual effect when switching view
UI Angular Router - How to Retain Views When Switching Views
iPhone: A good idea to deallocate and relocate UI elements when switching views?
Checking unregistered changes when switching views in backbone.js
Use UIScrollView and UIViews to call an action when a view appears
How to keep UITableView content when switching ViewControllers
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK