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 -

how does one get csharp-sqlite to throw exceptions for duplicates or foreign key constraint violations -

Simple Angular 2 project fails 'Unexpected reserved word' -