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

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

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