Animation stops while CCLayer is in another function. Help.

I’m trying to get a loading animation to work and the animation will start, but then while my CCLayer class is in it’s main initialization function, the animation just halts.

Can anyone explain why this is so I can work around it?

Thanks