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

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -

go - serving up pdfs using golang -

how to add preprocess loader in webpack 2 -