ios - View controller in storyboard always gets presented from bottom -
i have view controller in storyboard in , image
i'd included following code show particular view controller
, problem is, no matter code use make transition, if it's being pushed side of screen(like xib's push
), shows bottom.
uistoryboard * storyboard = self.storyboard; dashboardviewcontroller * dbvc = [storyboard instantiateviewcontrollerwithidentifier:@"navigforhomepage"]; [self.navigationcontroller showviewcontroller: dbvc sender:self];
i tried pushviewcontroller(also xcode says push deprecated), navigation bar disappears.
my storyboard has navigationcontroller initially, i'd linked other view controller's ctrl+drag , storyboard segue kind show(e.g.push), in-between - dashboardviewcontroller, included navigationcontroller different navigation bar, mistake?
i couldn't understand concept, question how normal push
transition? appreciated thanks.
uistoryboard * storyboard = self.storyboard; dashboardviewcontroller * dbvc = [storyboard instantiateviewcontrollerwithidentifier:@"navigforhomepage"]; [self.navigationcontroller pushviewcontroller:dbvc animated:yes];
Comments
Post a Comment