ios - How to tell if currently selected tab was pressed again? -


i assign action if user attempts select selected tab.

for example, if tab 1 selected , user tries select tab 1 again, want make app something.

are there uitabbarcontroller methods intercept attempt?

i've looked through uitabbar, uitabbarcontroller, , uitabbaritem apis , can't find obvious.

you have set uitabbarcontrollerdelegate. - tabbarcontroller:shouldselectviewcontroller: method can check self.selectedviewcontroller against view controller passed in. if same, selected being selected again.


Comments

Popular posts from this blog

java - Static nested class instance -

Python Pandas join aggregated tables -

process - Python What is the difference between a Pool of worker processes and just running multiple Processes? -