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

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -