prepareForSegue equivalent in WatchKit

后端 未结 4 1981
生来不讨喜
生来不讨喜 2021-01-11 10:07

I have an interface with 2 buttons, both of them call the same interface but with different information. On the traditional interface I use prepareForSegue, but I don\'t kno

4条回答
  •  误落风尘
    2021-01-11 10:40

    In WatchKit, you can use this for calling WKInterfaceController:

    [self pushControllerWithName:@"YourControlName"
              context:[self contextForSegueWithIdentifier:@"YourControlName"]];
    

提交回复
热议问题