Pages

Friday 2 January 2015

Implicit conversion from enumeration type 'enum CGImageAlphaInfo' to different enumeration type 'CGBitmapInfo' (aka 'enum CGBitmapInfo')



Here we got error like Implicit conversion..
First thing need to be consider in mind.. we need to 'typecast' to resolve the warning

CGBitmapInfo bitmapInfo =  kBitmapInfo;//old code here we got warning
Here we can simply typecast as below

CGBitmapInfo bitmapInfo = (CGBitmapInfo) kBitmapInfo;//do typecast as it

No comments:

Post a Comment