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
Post a Comment