we trying programmatically load specific uitabbarview within uitabbarcontroller isn't first uitabbarview. have uiviewcontroller uibutton should fire action load desired tab uitabbarcontroller. here screenshot of storyboard showing uiviewcontroller loads uitabbarcontroller:
assuming view controller loading tabbarcontroller segue, override -prepareforsegue in view controller, reference tabbarcontroller using segue.destinationviewcontroller , change selectedindex switch views
Comments
Post a Comment