Search code examples
watchkitwatchos-2

How to get current extension delegate on watchOS?


Is there a way to get the instance of extension delegate on watchOS? For example, can I get its instance from an interface controller or other code in the watch extension?


Solution

  • [WKExtension sharedExtension].delegate