ios - presenting new view controller. tabbed icons go away -


i working on project tabbed application. have button on home page goes second tabbed page when loads gets rid of tabs @ bottom. how prevent happening? code:

func managebuttonpressed() { let nvc:secondviewcontroller = secondviewcontroller() self.presentviewcontroller(nvc, animated: true, completion: nil)    } 

replace:

self.presentviewcontroller(nvc, animated: true, completion: nil)

with:

self.tabbarcontroller?.selectedindex = 1

this assuming home page button @ index 0 on first tab button of tab bar, while second vc on second tab @ index 1. may change index based on position of tab bar.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -