EDIT: I think i asked something really wrong over here, and i am sorry. What i am doing, is a mock of a slot machine, but i don’t think that it will be wise(just don’t want to insult myself) of me to put 250(50*5) images in the UIPICKERVIEW, There is no reason doing that, My idea now is to use only the 6 images for each column in deferent order and then when i spin just go again and again over the 30(6*5) images and spin them, that will give the same effect while using less resources, right? I can’t see what i was thinking, and thank you all for the answers
Implementing a complex UIPickerView (5 components) in iOS, I am stuck on this problem…
I have 5 NSArrays (for each component in the picker…not mutable) and I have 6 images.
I need to init every array with the set of images, that will populate the array for 50 images, set after set (I’m guessing some kind of for loop that will run 8 times and populate the array with 2 more images at the end?)
In every array the images need to be in a different order, but again, for the same array the set has to be the same all the way.
When I say a set I mean that I need to put the images in the same order again and again, not that they are in another array or anything like that….
Can any one help with this?
10x,
Erez
Not sure I understood the question, but, if I did, you may do:
then you may use
tmpas commonNSArray, or do something likeps. don’t forget to release tmp when you finished.