ios - Programatically switching tabs using selectedViewController property -


i've used search already, haven't found answer.

trying switch this:

[self. tabbarcontroller.selectedviewcontroller optionsviewcontorller]; 

and this:

 [self.tabbarcontroller.selectedviewcontroller = self.tabbarcontroller.viewcontrollers     objectatindex:3]; 

but doesn't work, tried , advice change

self.tabbarcontroller.selectedindex 

but changes @ tab bar not view.

this should work.

self.tabbarcontroller.selectedviewcontroller = [self.tabbarcontroller.viewcontrollers objectatindex:3]; 

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -