objective c - Use a View controller multiple times in navigation controller in iOS -


i new in ios, creating app twitter, using storyboard it. in app have view controller class shows user detail , feeds received messages, on click on message user can see message sender profile detail on view controller using navigation controller push segue go user profile message sender profile.

i want open further message sender profile on second view controller on click of message

like -> b -> c -> d -> e , on.., same facebook or twitter go order same in navigation controller.

the navigation controller works stack, automatically adjusted work way need.

add navigation controllers this:

uiviewcontroller *bbp=[[uiviewcontroller alloc]initwithnibname:@"uiviewcontroller" bundle:nil]; uinavigationcontroller *passcodenavigationcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:bbp];   [self.navigationcontroller pushviewcontroller:passcodenavigationcontroller animated:yes];   [passcodenavigationcontroller release]; 

go through apple docs clear idea: https://developer.apple.com/library/ios/documentation/uikit/reference/uinavigationcontroller_class/reference/reference.html


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -