I am creating a new layer and a UIActivityIndicatorView right before running a long process that takes several seconds to complete. The layer and UIActivityIndicatorView don’t show up until the long process is over, even though they are being created before hand.
Is there a way to force a frame update so they will show up right away? I tried calling CCDirector::sharedDirector()->drawScene(); and that seems to make the layer draw before the long process, however the UIActivityIndicatorView does not show yet.
After it creates the layer I do a libCurl command that downloads some data, which takes a while. The sprite created in the layer and the UIActivityIndicatorView don’t show up though until the libCurl command is done, which is not what I wanted.