I have 4 tabs in my iphone application. When the user clicks the button in tab-1, I want to move / switch the user to another tab, assuming tab-2.
How to do it?
you can use
[self.tabBarController setSelectedIndex:tabIndex];
where tabIndexis the index of the tab you want to switch to.
tabIndex
You can also specify that if you are inside a view, you should use super instead of self.
Swift 3.0 @Jasarien:
self.tabBarController?.selectedIndex = tabIndex
tabIndex - , .
Source: https://habr.com/ru/post/1738525/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1738520/problems-with-usually-short-solutions-to-test-in-a-programming-language&usg=ALkJrhgSKwev-YxnV5Q9OsA51jiGkKDH8QCreating a site for logging in to the mirror Facebook login - facebookHow to use and / or localize DisplayAttribute using ASP.NET MVC2? - asp.netDaylight saving time in DateDiff () in MS Access? - vbaWood with WPF with rounded corners - wpfStylecop - determine if Double or Float - c #How can I get a GUID from a PDB file? - debugginghttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1738528/how-do-i-auto-resize-users-inputted-images-to-a-specific-dimension-in-php&usg=ALkJrhj0hv2hQwVs32Y5-IxiKCRHPO3MvwSeparation of assemblies - search for balance (exclusion of overflow) - .netXNA / C # game settings (menu?) - c #All Articles