ios - Apple watch app entry point -


in xcode need specify initial interface controller watch app, entry point of watch app, shown first when open it.

but shown every time open watch app? example open watch app, navigate page, close it, , open again. open on page last time (like on ios), or again on first interface controller?

according apple documentation:

normally, watchkit displays first interface controller in sequence initially.

well, not every time. looked through watch app videos watch presentation event, there wasn't case when opened app twice.

that's great question!

main entry point

first off, can avoid showing maininterfacecontroller each time. see thread more information detail how use entry point launch appropriate set of interfacecontroller objects.

watch extension lifecycle

it important understand expected lifecycle of watch extension is. run while user has watch , running app. 1-5 seconds (opinionated value). user lowers wrist, watch extension terminated completely. therefore, going restarted every time @ same entry point. means need track app state if want launch different page set in maininterfacecontroller.

hopefully helps shed light.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -