I am trying to use the new shuffle method to shuffle my array: https://developer.apple.com/documentation/foundation/nsarray/1640855-shuffledarray?language=objc. But I just get an error saying: No visible @interface for 'NSArray' declares the selector 'shuffledArray'
.
This is my code:
NSArray *shuffledArray = [array shuffledArray];
And my project is iOS 10.0+