I'm getting an error when using WKInterfaceController's reloadRootPageControllers method.
My code is as follows:
var screenArray = [String]()
var contextArray = [Any]()
screenArray = ["ActionsInterfaceController", "WorkoutInterfaceController", "IntervalsTableController"]
contextArray = ["", activityType, ""]WKInterfaceController.reloadRootPageControllers(withNames: screenArray, contexts: contextArray, orientation: WKPageOrientation.horizontal, pageIndex: 1) The error is
FIT WatchKit Extension[36755:24303228] [default] -[SPInterfaceViewController viewWillDisappear:]:1294: responder refused to resign: <SPScrollView: 0x7fc96c83ee00; baseClass = UIScrollView; frame = (0 0; 184 224); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x6000015c3de0>; layer = <CALayer: 0x600001b0aae0>; contentOffset: {0, 0}; contentSize: {184, 224}; adjustedContentInset: {0, 0, 0, 0}> The paged Interface Controllers are displayed correctly, however the error consistently displays.
I can find no other reference to "responder refused to resign" anywhere. Is this a benign error or of more concern?
I am investigating an issue in the WorkoutInterfaceController in which any subsequent workout sessions after the first are resulting in the creation of additional concurrent workout sessions. The app returns to the main menu controller after each workout and calls this method again when the user launches a new workout so I want to eliminate this as a possible root cause.