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
Post a Comment