ios - Using my NavigationController with my ECSlidingViewController -


what i'm trying do


if started creating app. i've got navigationcontroller rootviewcontroller. when app started open loginviewcontroller. in there login-procedure, if fine. i'll start ecslidingviewcontroller. has menu (uitableview) , mainview (uitableview).

until here working fine. can swipe , show's menu. problem starting. when press menu-item starts new viewcontroller , show's content. there still show's same navigationbar - in ecslidingviewcontroller. got no possibility tell user looking at, need show him new options in navigationbar.

question


how can fix problem? i'd show navigationbar of specific viewcontroller i'm using. if guy's have codesnippets or idea how handle problem. please leave comment bellow.

if need codesnippets or else, tell me i'll upload it! thank in advance!

code


this how start ecslidingmenu:

[self performseguewithidentifier:@"loginpush" sender:self.view]; 

this how i'll start new viewcontroller:

uiviewcontroller *newtopviewcontroller = [self.storyboard instantiateviewcontrollerwithidentifier:identifier]; 

pictures*


structure of storyboard:

you want change structure ecslidingviewviewcontroller root view controller. can either start of app or can switch root after login. top view controller of sliding controller should navigation controller , should set root , push other view controllers navigation controller.

what have breaks link between view controllers , navigation controller because sliding view controller pushed stack , title (nothing navigationitem ever changes).

probably easiest solution change initial view controller in storyboard (to sliding view controller). in case login view presented root view of navigation controller (which top view). then, after login push next view controller , (after animation completes) remove login view controller nav stack.


Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -