Probably a simple question, but I’m having a hellofa time finding a solution to it.
I need to find the identifier of the current tab in a tabbarcontroller and use it in a conditional to run a method.
how do I find this?
if (self.tabbarcontroller.identifier == @"My identifier") {
// do some method
} else {
// do the default method
}
You can set the identifier of a ViewController in your storyboard