简体   繁体   中英

iOS: How to terminate extension process from host app?

Everytime the host app changes the settings, the extension don't update its variables because of cache.

So, i want to terminate extension process from its host app or somehow to communicate with the extension to change its variables.

Is it possible?

There is no way to terminate the extension from the host app. It is better to design the extension to observe data changes from the host app and reload itself in a timely manner.

For a tutorial on how to reload data in the extension see: http://www.glimsoft.com/06/28/ios-8-today-extension-tutorial/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM