I am new to iOS. I have a warning message and I can t solve it:) I have the following code:
NSSortDescriptor *sortDescriptorFirst = [NSSortDescriptor sortDescriptorWithKey:@"test" ascending:YES];
NSSortDescriptor *descriptor=[NSArray arrayWithObjects:sortDescriptorFirst,nil];
NSArray *sortedArray =[sections sortedArrayUsingDescriptors:@[descriptor]];
At line 2 I have a warning:
Incompatible pointer types initializing NSSortDescriptor with an expression of NSArray
How to solve this?