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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -