CGColorSpaceRef colorSpace = CGImageGetColorSpace([UIImage imageNamed:@" ( )shirtWhite.jpeg" ( )]);
CGContextRef context = CGBitmapContextCreate (nil,
width,
height,
CGImageGetBitsPerComponent(imageToTest.image),
CGImageGetBytesPerRow(imageToTest.image),
colorSpace,
CGImageGetAlphaInfo(imageToTest.image));
I got the warning on each line where I am passing the image. The warning is " ( ) warning: passing argument 1 of CGImageGetColorSpace from incompatible pointer type
警告: 通过来自不兼容指针类型的 CHGIMageGetBitsPerPerComponent 的参数 1
" ( )