Custom Push Segue removes navigation bar and tab bar in story board

前端 未结 3 907
孤城傲影
孤城傲影 2020-12-15 07:16

I have the following defined in a custom Segue, let us call it SegueX:

@interface SegueX : UIStoryboardSegue
@end

@implementation SegueX

- (void)perform
{
         


        
3条回答
  •  无人及你
    2020-12-15 07:54

    Try to check if you have set on storyboard an option like
    enter image description here
    That metrics are inferred on the pushed view controller (but I'm pretty sure it doesn't count).
    enter image description here

    And/or force the navigation bar and bottom bar to be visible programmatically using, inside the -viewWillAppear of the pushed view controller

    [self.navigationController setNavigationBarHidden:NO animated:NO];
    [self.navigationController setToolbarHidden:NO animated:NO];
    

提交回复
热议问题