Reshuffling of NSMutableArray Objects

Hello,Reshuffling of Object and place into different index which is random position. In most of games where need to reshuffling of object and matching the object like wise operation done using below code.

With the use of Method “exchangeObjectAtIndex:withObjectAtIndex” we can achieve this.

For Calling this method you can use below code.


Leave a Reply

Your email address will not be published. Required fields are marked *