SWRevealViewController - RightViewController

后端 未结 5 998
攒了一身酷
攒了一身酷 2020-12-06 21:22

I\'m using SWRevealViewController for implementing two side navigation views in my application. I followed the story board method and successfully implemented the rear view

5条回答
  •  无人及你
    2020-12-06 21:35

    you can also do what shad suggested. But if you are getting a flag with the right you can just replace

    - (void)loadStoryboardControllers
    
    
    if ( self.storyboard && _rearViewController == nil )
    {
        //Try each segue separately so it doesn't break prematurely if either Rear or Right views are not used.
        @try
        {
            [self performSegueWithIdentifier:SWSegueRearIdentifier sender:nil];
        }
        @catch(NSException *exception) {}
    
        @try
        {
            [self performSegueWithIdentifier:SWSegueFrontIdentifier sender:nil];
        }
        @catch(NSException *exception) {}
    
        @try
        {
            [self performSegueWithIdentifier:SWSegueRightIdentifier sender:nil];
        }
        @catch(NSException *exception) {}
    }
    
    
    }
    

    with

     - (void)loadStoryboardControllers
    {
    
    //[self performSegueWithIdentifier:SWSegueRightIdentifier sender:nil];
    [self performSegueWithIdentifier:SWSegueFrontIdentifier sender:nil];
    [self performSegueWithIdentifier:SWSegueRearIdentifier sender:nil];
    
    }
    

    as you can see i commented out

    //[self performSegueWithIdentifier:SWSegueRightIdentifier sender:nil];
    

    becasue thats the one giving you an issue. If its the front or rear you can do the same

提交回复
热议问题