Skip to content

the navigationbar DID NOT SHOW in the second viewcontroller when the navigationbar is HIDDEN in the first view controller #16

@ben46

Description

@ben46

I want to hide the navigationbar in the first viewcontroller , and use the fullScreenScroll in the second viewcontroller .
Now the problem is:
when I push the second view controller from first viewcontroller, the navigationbar DID NOT SHOW in the second viewcontroller.
Following is the code I use in the first view controller:

-(void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:YES animated:animated];
}

-(void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:NO animated:animated];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions