static id SLRandomValueFromArray(NSArray *array) {
if ([array count] == 0) {
return nil;
}
return [array objectAtIndex:(NSUInteger)arc4random_uniform([array count])]; // WARNING HERE
}
The warning says
Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'u_int32_t' (aka 'unsigned int')
I've never come across this warning before and not really sure how to resolve this with Xcode 7 and iOS 8