ios - How to make button go back to specified view controller -


i have settings page has configure button 1 of settings. have them linked configure page, made button brings me page. instead brings me first tab. want bring me third. if connect button third tab view doesn't work , view reformatted. when go tabs, selected tabs don't go there selected image, instead default highlight.

if viewcontrollers managed uinavigationcontroller can use method

[self.navigationcontroller poptoviewcontroller:vc animated:yes]

provided have reference viewcontroller you'd go back to. related methods are

[self.navigationcontroller poptorootviewcontrolleranimated:yes] [self.navigationcontroller popviewcontrolleranimated:yes]

all documented here.

edit: adding comment text answer completeness , search purposes. if you're using uitabbarcontroller manage set of, example, 2 viewcontrollers. , 1 of viewcontrollers can push viewcontroller on top of want this: tabbarcontroller contain 2 things: 1 viewcontroller , 1 navigationcontroller (that contains settingsviewcontroller , configurationviewcontroller).


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -