Yuichi Kato
Yuichi Kato

Reputation: 891

Dismiss modal on Apple Watch

I am trying to make a simple transition between 2 interface controllers as below.

The transition from FirstInterfaceController to SecondInterfaceController works, but I cannot close the modal by [self dismissContoller]. Do you have any ideas how to make it work?

In FirstInterfaceController

[self pushControllerWithName:@"SecondIC" context:nil];

In SecondInterfaceController

- (IBAction)buttonAction {
    [self dismissController];
}

I know that you can go back by tapping the button on the upper left corner, but I want to place a button to close modal explicitly.

Upvotes: 1

Views: 1017

Answers (1)

Feng Lin
Feng Lin

Reputation: 593

Use the -[popController] instead.

Upvotes: 3

Related Questions