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

前端 未结 3 905
孤城傲影
孤城傲影 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:49

    The navigation bar and the tool bar should disappear in the storyboard when you change the segue -- that's normal. You can change the simulated metrics for the bottom bar to "Translucent Toolbar", which will add it back, so you can add buttons to it (you only want to change the simulated metrics, not drag in another tool bar which would add a second tool bar). You should still see both bars with their buttons at run time.

提交回复
热议问题