UINavigationController and back button action

后端 未结 7 2078
-上瘾入骨i
-上瘾入骨i 2021-01-04 09:09

I have an two controllers 1st is self and 2nd is maincontroller, where I\'m pushing maincontroller in stack

7条回答
  •  旧巷少年郎
    2021-01-04 09:35

    create a button and give the button action as follows.

    [self alert];
    

    and when the alert is displayed, after tapping over yes

    [self.navigationController popViewController];
    

    after this,

    self.navigationController.LeftBarButton = myButton;
    

    this may help

提交回复
热议问题