Code to arc4random crashes and doesn’t load accurately

Asked By 10 points N/A Posted on -
qa-featured

Hi all,

I doubt as to how I could randomize the sort of questions when all the question are in an NSInteger. I am applying the following code to attempt and show my arc4random, but it crashes and doesn’t load accurately.

Question = arc4random() %6 +1;

Please give me a solution to solve this.

Thanks a lot.

SHARE
Answered By 0 points N/A #149340

Code to arc4random crashes and doesn’t load accurately

qa-featured

Hallo Kim,

The first steps towards solving that issue will be to check the following:

  • Check how the wpeep_layer has been defined, for the problem might be coming from there. If there are any changes you will need to do to the definitions you will need to do them.
  • Check how the addWpeep has been defined.
  • Check the last position that has the definition of the peep,

What could be the most probable cause of the problem could be some mistake in the addWpeep.

You should also try adding planets – make sure you get the right one for your version of weeps – which should be CCSprites with the z value of between the layers.

Hope that helps.

Regards,

Carl

Login/Register to Answer

Related Questions