objective c - How to push a view from project that based on Tab Bar Controller -


i have project based on tab bar controller. but there 1 view has pushed button in view belong tab bar controller.

this crazy me can not push view because last view not belong tab bar controller, need pushed navigation controller.

i have embeded navigation controller storyboard , use code :

 uitableviewcell *cell = [tableview cellforrowatindexpath:indexpath];     nsstring *str = cell.textlabel.text;     searchvc *prue =[self.storyboard instantiateviewcontrollerwithidentifier:@"araikrab"];      //start push     [self.navigationcontroller pushviewcontroller:prue animated:yes]; 

but doesn´t work, igot warning messege (yellow icon): un supported configuration scene unreachable due lack of entry points , not have identifier runtime asccess vis-instantiateviewcontrollerwithidentifier.

can me ?

what need put tableviewcontroller inside uinavigationcontroller can push new viewcontroller

[self.navigationcontroller pushviewcontroller:prue animated:yes]; 

that came done either in storyboard adding navigationcontroller tabviewcontroller , put viewcontroller root http://www.raywenderlich.com/5138/beginning-storyboards-in-ios-5-part-1

or in code following

uinavigationcontroller *nav = [[uinavigationcontroller alloc]initwithrootviewcontroller:mytableviewcontroller]; mytabviewcontroller.viewcontrollers =@[nav,othertab]; 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -