uiimageview - Showing 5 random images, but everytime 2 the same images -


i'm developing game, don't know how proceed. i'm showing image , after 5 sec disappears , 4 images pop up. 3 different images , 1 image image disappeared. don't want show same images everytime, want random images shown everytime start application. how can make sure image disappears, shown in other 4 images? , possible change places of 4 images everytime?

i hope will/can me! thanks!!

you can :

  1. name images image0.png, .. image4.png etc..

  2. create random no using ->
    nsinteger randomnumber = arc4random() % 5; generate no.s form 0 4.

3.now use image%@ %@ randomly generated number.

mind pretty basic solution. there better solutions out there.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -