I have created a tabbar based application which contains, let say, 3 tabs. In my first tab, I have 3 UIButtons. on clicking button 1, a new viewcontroller 1 is loaded and the tab 1 is highlighted as selected. On clicking button 2, a different view is loaded (Viewcontroller 2) and tab 2 should be highlighted as selected tab (Remember, this viewcontroller 2 is not the root view controller of tab 2) and on clicking button 3, again a new view is shown (viewcontroller 3) and tab 3 should be highlighted as selected (Remember, this viewcontroller 3 is not the root view controller of tab 3). So, what I want to do is, I want a particular tab to be shown as selected (or highlighted), but dont want to load its root view controller. I have tried using tabbarcontroller.selectedindex = 1 on clicking of button 1, but it went in vain. Because what happened was tab 1 got selected and the view being shown to me was not viewcontroller 2. Instead it was the root view controller of tab 2. Somebody pls get me out of this mess....
Tab bar controller selectedIndex or SelectedViewController accessor
424 Views Asked by anshul At
1
There are 1 best solutions below
Related Questions in IPHONE
- pysnmp command responder - Handle get/set requests with external data (not mib)
- import external python library (pysnmp) in Cameo Systems Modeler 18.1
- PySNMP Error InterfaceIndexOrZero Error
- pysnmp walk v2c if no response try v3
- pysnmp Agent with HOST-RESOURCES-MIB
- Using pySNMP to write an SNMP agent (for OpenNMS)
- PySNMP form dictionary from table
- Import custom MIB PySNMP Windows
- Trouble grasping MIBs with PySNMP
- Translate OID value pairs from MIB textual convention using pysnmp
Related Questions in OBJECTIVE-C
- pysnmp command responder - Handle get/set requests with external data (not mib)
- import external python library (pysnmp) in Cameo Systems Modeler 18.1
- PySNMP Error InterfaceIndexOrZero Error
- pysnmp walk v2c if no response try v3
- pysnmp Agent with HOST-RESOURCES-MIB
- Using pySNMP to write an SNMP agent (for OpenNMS)
- PySNMP form dictionary from table
- Import custom MIB PySNMP Windows
- Trouble grasping MIBs with PySNMP
- Translate OID value pairs from MIB textual convention using pysnmp
Related Questions in IOS
- pysnmp command responder - Handle get/set requests with external data (not mib)
- import external python library (pysnmp) in Cameo Systems Modeler 18.1
- PySNMP Error InterfaceIndexOrZero Error
- pysnmp walk v2c if no response try v3
- pysnmp Agent with HOST-RESOURCES-MIB
- Using pySNMP to write an SNMP agent (for OpenNMS)
- PySNMP form dictionary from table
- Import custom MIB PySNMP Windows
- Trouble grasping MIBs with PySNMP
- Translate OID value pairs from MIB textual convention using pysnmp
Related Questions in UITABBARCONTROLLER
- pysnmp command responder - Handle get/set requests with external data (not mib)
- import external python library (pysnmp) in Cameo Systems Modeler 18.1
- PySNMP Error InterfaceIndexOrZero Error
- pysnmp walk v2c if no response try v3
- pysnmp Agent with HOST-RESOURCES-MIB
- Using pySNMP to write an SNMP agent (for OpenNMS)
- PySNMP form dictionary from table
- Import custom MIB PySNMP Windows
- Trouble grasping MIBs with PySNMP
- Translate OID value pairs from MIB textual convention using pysnmp
Related Questions in SELECTEDINDEX
- pysnmp command responder - Handle get/set requests with external data (not mib)
- import external python library (pysnmp) in Cameo Systems Modeler 18.1
- PySNMP Error InterfaceIndexOrZero Error
- pysnmp walk v2c if no response try v3
- pysnmp Agent with HOST-RESOURCES-MIB
- Using pySNMP to write an SNMP agent (for OpenNMS)
- PySNMP form dictionary from table
- Import custom MIB PySNMP Windows
- Trouble grasping MIBs with PySNMP
- Translate OID value pairs from MIB textual convention using pysnmp
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If that is indeed your requirement, the best way is to create a 'fake' tab bar using custom uiimageview. You will need three imageview and change the images accordingly as you tap the buttons.