Touching Currently Selected Tab Bar Button

Hello! I have a basic tab bar set up, and I would like to know how to be able to select a tab button that is currently selected and have it re-perform by going to its set storyboard scene.

From my opening screen (tab bar button 1), I can tap a button and transfer to another screen and tab bar button 1 is still selected (good). However, when I am at the other screen and I press tab bar button 1, nothing happens (bad). I want it to travel back to the original screen. Is this possible to set up?

Thank you!

Nathan

I don’t believe this is supported out of the box.

However, if you are feeling adventurous you could download the widget source code from github and add this functionality yourself.

If you are on tab 1 and you tap tab 3, it should go to tab 3 and show tab 3 selected.  Is this not happening?

You can manually select a button using:  http://docs.coronalabs.com/api/type/TabBarWidget/setSelected.html

Thanks, Gremlin. I’ll keep that in mind if I ever do strike an adventurous spirit.

Mr. Miracle, that is happening. The tab bar is currently functioning properly. Although when tab 1 is selected I cannot press it again and have it perform what it is supposed to do (change scene). I would like it to behave every time I select it whether it it currently selected or not.

This capability existed in Widget 1.0 code and then was dropped off from Widget 2.0 without any notice. At the time, it broke our code and a number of us reported this omission as a bug which I still consider it to be. Suggest posting a bug report. 

I don’t believe this is supported out of the box.

However, if you are feeling adventurous you could download the widget source code from github and add this functionality yourself.

If you are on tab 1 and you tap tab 3, it should go to tab 3 and show tab 3 selected.  Is this not happening?

You can manually select a button using:  http://docs.coronalabs.com/api/type/TabBarWidget/setSelected.html

Thanks, Gremlin. I’ll keep that in mind if I ever do strike an adventurous spirit.

Mr. Miracle, that is happening. The tab bar is currently functioning properly. Although when tab 1 is selected I cannot press it again and have it perform what it is supposed to do (change scene). I would like it to behave every time I select it whether it it currently selected or not.

This capability existed in Widget 1.0 code and then was dropped off from Widget 2.0 without any notice. At the time, it broke our code and a number of us reported this omission as a bug which I still consider it to be. Suggest posting a bug report.