Are you trying to create an NSMutableArray or an NSArray? You have declared the variable as being of type NSMutableArray*
, but the expression on the right creates an NSArray. If you want this array to be mutable, change the receiver of arrayWithObjects:
to be NSMutableArray; if not, change the declaration to correctly identify this as an NSArray instead of an NSMutableArray.
6
solved Incompatible pointer types initializing ‘NSMutableArray *’ with an expression of type ‘NSArray *’ [closed]