ios - Getting Active View in TabBarController -


i attempting active view controller in tabbarcontroller given user has selected tab. however, calling:

override func viewdidload() {     super.viewdidload()      print(string(self.tabbarcontroller?.selectedviewcontroller?.title)) } 

is nil.

how can note active view in tab?


Popular posts from this blog

node.js - How do I prevent MongoDB replica set from querying the primary? -

c# - Randomly pick a specific int from a 2D Array -

php - Angularjs http.delete is not working after deploying project on server -