« first day (1200 days earlier)      last day (1740 days later) » 

6:26 AM
hi, I'm having a very hard time understanding initializers in swift. I created a template SpriteKit Game project and added a few SKSpriteNode variables that I didn't initialize. Now I am having to initialize them in all 3 initializers that have to be overridden or the thing doesn't compile. Is there any way to do it only once?
 
 
3 hours later…
9:56 AM
@PremKhetani Hello, I have an issue, can you help me please?
Nevermind, I can do it by myself.
 
10:48 AM
Yes Please do tell me :) @ArcadeMaestrex
 
 
3 hours later…
1:42 PM
Hi guys can you please see this: stackoverflow.com/questions/33852420/…
Thanks
 
hi guys! any idea how I can initialize variables without having to duplicate code in all the initializers from all the subclasses
e.g. in SKScene, there are 3 initializers
 

« first day (1200 days earlier)      last day (1740 days later) »