objective c blocks - Get warnning when using representationUsingType:NSPNGFileType properties:nil -


i trying convert image nsdata , got below warning. explain me warnning, , how fix it?

cgimageref cgref = [imgview.imageview image]; nsbitmapimagerep *newrep = [[nsbitmapimagerep alloc]initwithcgimage:cgref]; [newrep setsize:imgview.imageview.imagesize]; nsdata *pngdata = [newrep representationusingtype:nspngfiletype properties:nil]; 


warnning properties of representation:

null passed callee requires non-null argument


Comments

Popular posts from this blog

go - serving up pdfs using golang -

python - Best design pattern for collection of objects -

r - Using `bbmle:mle2` with vector parameters (already works using `optim`) -