M moonman239 Cancelled Original poster Mar 27, 2009 1,541 32 Jul 29, 2014 #1 I have a client. This client wants me to show her an app that takes an array and arranges it in a way that is out of order. Maybe I could use NSSet.
I have a client. This client wants me to show her an app that takes an array and arranges it in a way that is out of order. Maybe I could use NSSet.
J JohnsonK macrumors regular Mar 6, 2014 142 0 Jul 29, 2014 #2 You have an array, you want to show its contents out of order. To achieve this you can shuffle your array, to do so you can use in a loop: Code: arc4random_uniform() and Code: exchangeObjectAtIndex:withObjectAtIndex: Having your array shuffled, you can then iterate through your array like you normally would, displaying each object.
You have an array, you want to show its contents out of order. To achieve this you can shuffle your array, to do so you can use in a loop: Code: arc4random_uniform() and Code: exchangeObjectAtIndex:withObjectAtIndex: Having your array shuffled, you can then iterate through your array like you normally would, displaying each object.
ArtOfWarfare macrumors G3 Nov 26, 2007 9,710 6,304 Jul 30, 2014 #3 NSSet isn't necessarily disorderly. The order is unspecified and may change at any time, so it might be disorderly, but it's not necessarily so.
NSSet isn't necessarily disorderly. The order is unspecified and may change at any time, so it might be disorderly, but it's not necessarily so.