문제

this is my code to perform a modal segue when a button is clicked:

-(IBAction)segueAction:(id)sender{
    [self performSegueWithIdentifier:@"mySegue" sender:self];}

The problem is that when i get in the new View there is no BackButton to get back to the previous one. I'd like it to appear. What can i do?

도움이 되었습니까?

해결책

The [Back] button does not appear when you show views modally, because there is no navigation stack with which you could go back to a previous view.

You need to either add your own [Close] button to the view controller that you opened modally, or use a navigation view controller, and push the new view controller on the stack.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top