ios - Replace ViewController of a tab in a TabBarControlller -
i have tabbarcontroller & 4 tabs individual viewcontrollers (embedded in navigationcontroller/tableviewcontroller) created using interface. dynamically added multiple barbuttons on viewcontroller1. current view controller of tab 1 has replaced on click of barbutton. how should go it?
this snippet should play around with, hang of more
self.tabbarcontroller.selectedindex = 1;
i have answered question before too, can refer answer here
[self.tabbarcontroller setviewcontrollers:arrayofnewviewcontrollers]; self.tabbarcontroller.selectedindex = 0;
Comments
Post a Comment