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

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo