ios - WatchKit super.awakeWithContext() and super.willActivate() -


i wondering if should set objects before or after these methods in watchkit, , why?

i think saw wwdc video saying should before super.willactivate(), can not remember 1 is.

anyone can help?

what should following:

override func awakewithcontext(context: anyobject?) {      // call super     super.awakewithcontext(context)      // whatever want     self.dointerfaceconfiguration() } 

in method, should interface configuration. main reason behind doing configuration here in point can sure outlets connected objects , controller configured. more methods can found in apple docs.

edit: answer second question willactivate() method, taken documentation:

the willactivate method lets know when interface become visible on apple watch. use method make last minute updates controls or start times or other tasks. (do not use initialization.) use corresponding diddeactivate method perform final cleanup.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -