我想在Apple Watch應用程序的InterfaceController中獲取ExtensionDelegate的實例,但似乎無法找到方法。我在Extension Delegate中創建了一個方法,我需要調用該方法,爲此我需要一個Extension Delegate的共享實例。有沒有辦法做到這一點?在WatchKit InterfaceController中獲取擴展委託的實例
像iOS應用,我們叫它像:
[(AppDelegate *)[[UIApplication sharedApplication] delegate] methodName];
完美地工作。謝謝! :) –